场景一: 想知道tomcat有没有启动 使用命令ps -aux | grep tomcat
场景二: 知道网络端口8080被占用,需要找到被占用的pid 使用命令netstat -anp | grep 8080 最后两列是pid/pname