vim中整篇替换字符:
“:%s/XXXXX/OOOOO/g”
查看各站点流量
tail -n300 /usr/local/apache/logs/access_log| awk -F " " '{print $1,$2}'|sort| uniq -c |sort -nr | grep XXX
杀进程:
lsof -i:21 查看进程号为21的服务
pkill XXXX 杀死所有进程为XXXX的进程
查看系统版本:
lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5 (Final)
Release: 5
Codename: Final
阅读(519) | 评论(0) | 转发(0) |