tomcat端口号、日志、启停

时间:2021-11-28 13:01:35

cd到tomcat目录下

1、[root@rusky bin]# ./shutdown.sh         关闭tomcat

2、[root@rusky bin]# ./startup.sh             启动tomcat

3、ps -ef | grep tomcat   查看当前正在运行tomcat的服务ps -ef | grep java

4、kill -9 pid进程号    强杀tomcat

5、cd到tomcat日志目录下...tomcat/apache-tomcat-6.0.37/logs

  ./catalina.out   查看tomcat当前运行的日志或者tail -f catalina.out

6、tomcat默认端口号8080

cd   /home/ldap/tomcat/apache-tomcat-6.0.37/conf

vi server.xml

...........

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />