作者:mobiledu2502906927 | 来源:互联网 | 2023-09-11 11:48
1. MySQL连接数查询
mysql -e ‘show full processlist‘ | grep quant | wc -l
2. 依据PID查询进程相关信息
netstat -nap | grep PID
ps -ef | grep PID
3. 依据进程名查询相关信息
ps aux | grep P_NAME
4. 根据端口查询进程信息
netstat -tunlp | grep PORT
lsof -i:PORT
常用命令速查