ps -aux
用grep匹配特定的程序名,查看该程序是否运行
ps -aux | grep 程序名
netstat –apn
用grep匹配程序名,查看改程序是否运行
用grep匹配端口号,查看该端口号是否被占用
netstat -anp | grep portno