netstat: 查看端口号占用命令 netstat -pan | grep 8080 ps: 通过进程ID查找程序 ps -aux | grep 2233 通过服务查找进程ID ps -ef |grep tomcat