📜  在 ubuntu 中监控网络请求 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:25.901000             🧑  作者: Mango

代码示例1
while true
do
echo -----`date '+%r'` -----:
netstat -ant | grep :3011 | awk '{print $6}' | sort | uniq -c | sort -n
echo httpd processes: [`ps aux | grep httpd | wc -l`]
echo .
sleep 2
done