文章标签 ‘webserver’
转载时请标明文章原始出处和作者信息, 作者: lostsnow.http://www.lsproc.com/blog/linux_webserver_cmd/
实时查看正在执行的sql语句
/usr/sbin/tcpdump -i eth0 -s 0 -l -w - dst port 3306 | strings | egrep -i 'SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP|ALTER|CALL'
查看http连接
netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"\t",state[key]}'
查看SYN状态的http连接
netstat -an | grep SYN | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | sort -nr | more
查看TIME_WAIT状态的http连接
netstat -tna | [...]
分类: Linux&Webserver
