标签:pat .sh down 1.4 ase org temp pac str
一、安装方法http://blog.51cto.com/12965094/2129450
1、[root@localhost bin]# sh startup.sh
Using CATALINA_BASE: /app/tomcat
Using CATALINA_HOME: /app/tomcat
Using CATALINA_TMPDIR: /app/tomcat/temp
Using JRE_HOME: /usr/local/java
Using CLASSPATH: /app/tomcat/bin/bootstrap.jar:/app/tomcat/bin/tomcat-juli.jar
Tomcat started.
2、查看TOMCAT运行日志情况
[root@localhost tomcat]# tail -f logs/catalina.out
04-Sep-2018 14:10:21.458 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
04-Sep-2018 14:10:21.460 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 516 ms
#Server startup in 516 ms 代表启动成功
3、检查JAVA程序与端口是否启动
[root@localhost tomcat]# netstat -tlunp | grep java
tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 27143/java
tcp 0 0 :::8009 :::* LISTEN 27143/java
tcp 0 0 :::8080 :::* LISTEN 27143/java
4、关闭方法
[root@localhost tomcat]# sh bin/shutdown.sh
Using CATALINA_BASE: /app/tomcat
Using CATALINA_HOME: /app/tomcat
Using CATALINA_TMPDIR: /app/tomcat/temp
Using JRE_HOME: /usr/local/java
Using CLASSPATH: /app/tomcat/bin/bootstrap.jar:/app/tomcat/bin/tomcat-juli.jar
标签:pat .sh down 1.4 ase org temp pac str
原文地址:http://blog.51cto.com/12965094/2170076