如何查看Linux当前运行的tomcat | 您所在的位置:网站首页 › linux看正在运行的程序怎么看 › 如何查看Linux当前运行的tomcat |
查看tomcat是否启动 (或说查看Linux当前运行的tomcat): ps -ef | grep tomcat 或者 ps -ef | grep java 【貌似ps -aux | grep tomcat 或者 ps -aux | grep java也行呀】 启动tomcat (在tomcat/bin目录下): ./startup.sh 查看tomcat是否启动成功 (cd到tomcat的目录下): tail -f logs/catalina.out 查看控制台日志信息,如果出现 “信息: Server startup in 2450 ms” ,说明tomcat已经启动成功。 关闭tomcat: ./shutdown.sh 或者 强制关闭进程 【kill -9 pid号码(可由ps -ef | grep tomcat查出)】 附部分代码图解:
|
CopyRight 2018-2019 实验室设备网 版权所有 |