查看当前系统某个进程状态的详细信息
ps -ef | grep tomcat
根据进程号查询某个正在运行的程序的端口号
netstat -anop | grep pid
根据端口号查询进程号
netstat -tunlp | grep 端口号
查看控制台日志信息
tail -f logs/cataina.out
shutdown.sh关闭不了进程
关闭tomcat sh shutdown.sh 查看进程 ps -ef|grep tomcat 强制关闭 kill -9 pid
原因:可能是之前多次启动tomcat,未正常关闭,或者是放置了多个tomcat的问题。
切记使用多个tomcat时,使用不同的端口号,在cof/server.xml里面设置。