Skip to content

Instantly share code, notes, and snippets.

@ChinaSor
ChinaSor / devops.sh
Created June 20, 2020 05:58 — forked from muchuang1024/devops.sh
运维常用shell脚本
### 根据进程id查端口号
netstat -anop|grep 12146
### 统计访问日志IP和每个IP访问的次数
cat /home/wwwlogs/access-test.log | awk '{print $1}' |sort| uniq -c |sort -rn |head -10
### CPU占用最多的前10个进程