共 13 篇文章 |
|
(1)、取出两个文件的并集(重复的行只保留一份)[python] view plain copy cat file1 file2 | sort | uniq > file3 (2)、取出两个文件的交集(只留下同时存在于两个文件中的文件)[python] view plain copy cat file1 file2 | sort | uniq -d > file3 (3)、 删除交集,留下其他的行[python] view plain copy cat file1 file2 | sort |... 阅165 转0 评0 公众公开 17-06-17 15:46 |
Centos7卸载nginx及php、php本文环境:Centos7、yum方式安装的nginx和php、php-fpm. 阅425 转0 评0 公众公开 16-12-26 03:06 |
阅383 转2 评0 公众公开 16-12-15 03:30 |
simdhtpid=$(ps -ef|grep -v grep|grep "python simdht_worker.py"|awk ''{print $2}'')kill -9 $simdhtpidsimdhtpid=$(ps -ef|grep -v grep|grep "python index_worker.py"|awk ''{print $2}'')kill -9 $simdhtpidsleep 1cd /root/ssbc/workersnohup python simdht_worker.py >/dev/z... 阅793 转10 评0 公众公开 16-12-14 16:08 |
Linux---使用 nice、cpulimit 和 cgroups 限制 cpu 占用率。正常运行的进程(nice值为0)获得了更多的cpu运行时间,相反的,用nice命令运行的进程占用的cpu时间会较少(nice值为10)。同时,nice 和 cpulimit 只能限制 cpu 使用率,而 cgroups 则可以限制其他进程资源的使用。其中,cpulimited 控制组中的两个 matho-primes 进程获得的cpu 时间... 阅101 转0 评0 公众公开 16-11-26 01:44 |
Linux下取代top的进程管理工具 htop.In ''htop'' you don''t need to type the process number to kill a process, in ''top'' you do.In ''htop'' you don''t need to type the process number or the priority value to renice a process, in ''top'' you ... 阅36 转1 评0 公众公开 16-11-26 01:40 |
ssbc 运行一段时间就停止的原因。ssbc 运行一段时间后,大概半个小时,就莫名奇妙停止不爬了。通过错误提示可以看出,其实是ssbc与mysql(maridb)断开连接了,导致程序异常,当然就插入不了数据了。附上方法二修改后的爬虫源码(simdht_worker.py)index_worker.py是用来建立索引,和simdht_worker.py问题一样,运行一会儿就停止,导致无法搜索到... 阅147 转1 评0 公众公开 16-11-26 01:38 |
在CentOS6.5中安装htop.由于CentOS7.0自带了htop ,服务器上还是 CentOS6.5,所以需要自己手动来安装。命令终端输入gcc -v如果没有安装gcc,按如下来安装yum install -y gcc安装后,需要安装一个编译Linux内核的库yum install -y ncurses-devel下载HTOP.tar -zxf downloadcd htop-1.0.2./configure &&make &&make install.执行h... 阅365 转7 评0 公众公开 16-11-26 01:37 |