比如我想看 nginx是否正在运行:ps aux | grep nginx | grep -v grep比如我想看nginx占用的是什么端口netstat -lnp | grep nginx
ps aux | grep tomcat