• 用Supervisord管理Python进程

    日期:

    转自:http://feilong.me/2011/03/monitor-processes-with-supervisord 软件下载地址:http://pypi.python.org/pypi/supervisor/3.0a12#downloads 软件文档:http://supervisord.org/installing.html Supervisord是用Python实现的一款非常实用的进程管理工具...

  • linux 下使用supervisor管理源码启动的openerp

    日期:

    从源码启动openerp,简单的做法是添加启动脚本到/etc/init.d/rc.local等,让openerp 随系统启动而运行。此类方法只在系统启动时运行,但万一程序在运行中崩溃,您可能要等到用户发现不能使用了,才去重启服务器。下面请出今天的主角: supervisor (http://su...

  • linux 下取进程占用 cpu/内存 最高的前10个进程

    日期:

    # linux 下 取进程占用 cpu 最高的前10个进程 psaux|head-1;psaux|grep-vPID|sort-rn-k+3|head # linux 下 取进程占用内存(MEM)最高的前10个进程 psaux|head-1;psaux|grep-vPID|sort-rn-k+4|head...

  • bash 调用历史命令

    日期:

    1. ctrl+r 搜索历史,匹配后直接回车执行 2. !+历史命令号 先用history查看历史命令号,然后!执行 如: #history 1342 ls 1343 ll 1344 ./optch 1345 ./opatch 1346 ./opatch version 1347 ./opatch isinventory 1348 ./opatch 1349 ./opatch lsinventory 1...

  • BASH操作

    日期:

    命令行编辑操作 功能 Ctrl+b或左箭头键 左移一个字符(移至前一个字符) Ctrl+f或右箭头键 右移一个字符(移至后一个字符) Ctrl+a 移至行首 Ctrl+e 移至行尾 Esc b 左移一个单词 Esc f[@more@]右移一个单词 Del 删除光标所在处的字符 Ctrl+d 删除光标所在处...

  • 增加linux vg 空间大小

    日期:

    目前linux默认安装都采用了LVM逻辑卷管理,此技术用于方便管理硬盘、分区,及灵活调整分区大小等; 系统默认安装分区显示如下: [root@standby ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 8G 6.2G 0.7G 93% / /d...

  • 一份非常内行的Linux LVM HOWTO

    日期:

    目录: 1.绪论1 2.什么是LVM?2 3.基本原理3 4.首要条件7 5.增长文件系统7 6.替换磁盘8 7.为一致性备份做快照9 8.冗余AMP;性能10 9. COOKBOOK11 10.进一步阅读12 11.致谢12 正文: 1.绪论 欢迎你,亲爱的读者。 写这个文档的目的是为了告诉你什么是LVM,它怎...

  • linux 文件系统最大限制

    日期:

    红帽子文件系统限制: See also: http://www.redhat.com/resourcelibrary/articles/articles-red-hat-enterprise-linux-6-technology-capabilities-and-limits Version 3 Version 4 Version 5 Version 6 Maximum logical CPUs [2] x86 16 32 32 32 Itanium 2...

  • linux网桥模式vlantrunk透传

    日期:

    首先使用vconfig创建vlan虚拟接口,并分别在两个接口上增加vlan100\vlan200\vlan300 vconfig add eth0 100 vconfig add eth0 200 vconfig add eth0 300 vconfig add eth1 100 vconfig add eth1 200 vconfig add eth1 300 启用vlan端口 ifconfig eth0.100 up...

  • 在linux路由上设置IP和MAC绑定

    日期:

    在有些系统中有这样的需求,希望内部网中的某几个IP地址连接互联网,而又希望这些 IP地址不被非法用户盗用。可以通过下面的解决办法实现: 1. 首先使用ipchains或者iptables来设定只允许合法的IP地址连出。 对于合法IP建立IP/MAC捆绑。要讨论这个问题我们首...