Linux 操作tomcat
[root@localhost /]# ps aux|grep java

- 2进入安装tomcat的bin目录,关闭tomcat
[root@localhost bin]# ./shutdown.sh
[root@localhost bin]# ps aux|grep java
已经停止直接再次启动
[root@localhost bin]# ./startup.sh
# 查看启动日志
[root@localhost tomcat]# tail -f logs/catalina.2021-08-28.log