Think before you speak, read before you think.

判断一台服务器在不在用

1. 看进程

ps aux  | grep -Ei "java|rabbitmq|mongo|mysql|redis|nginx|python|php|zabbix|haproxy|keepalive|dnsmasq|bind|docker|httpd|oracle"

2. 看连接

netstat -ntp | grep -vE ":25|:22"

3. 看所有进程及从属关系

pstree -p

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *