查看某程序是否在运行ps -ef |grep lightdm 查看正在使用的端口号 netstat -anptl 查看正在使用的端口号(查看某端口是否在使用) netstat -anptl | grep 2708