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
mysql -e 'show full processlist' | grep quant | wc -l
netstat -nap | grep PID
ps -ef | grep PID
ps aux | grep P_NAME
netstat -tunlp | grep PORT