linux 按照进程号查看端口号 # ps -ef | grep tomcat (查出tomcat的进程号) # netstat -anp | grep PID ( 即可查出此PID 占用的端口) 无可奈何花落去,似曾相识燕归来