Linux_reboot tomcat

[root@clouddb-mysql-203 ~]# ps -ef|grep tomcat    --查看tomcat进程

root      1703     1  0 Aug18 ?        00:07:42 /usr/java/jdk1.7.0_60/bin/java -Djava.util.logging.config.file=/usr/local/apache-tomcat-7.0.54/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512m -Xmx1024m -XX:MaxNewSize=512m -XX:MaxPermSize=512m -Djava.endorsed.dirs=/usr/local/apache-tomcat-7.0.54/endorsed -classpath /usr/local/apache-tomcat-7.0.54/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.54/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/apache-tomcat-7.0.54 -Dcatalina.home=/usr/local/apache-tomcat-7.0.54 -Djava.io.tmpdir=/usr/local/apache-tomcat-7.0.54/temp org.apache.catalina.startup.Bootstrap start

root      2059     1  0 Aug18 ?        00:00:01 automount --pid-file /var/run/autofs.pid

root      7085  7062  0 18:25 pts/0    00:00:00 grep tom

[root@clouddb-mysql-203 ~]# cd /usr/local/apache-tomcat-7.0.54/    --进入tomcat目录

[root@clouddb-mysql-203 apache-tomcat-7.0.54]# ls

bin  conf  lib  LICENSE  logs  NOTICE  RELEASE-NOTES  RUNNING.txt  temp  webapps  work

[root@clouddb-mysql-203 apache-tomcat-7.0.54]# cd bin

[root@clouddb-mysql-203 bin]# ./shutdown.sh   --关闭tomcat服务

Using CATALINA_BASE:   /usr/local/apache-tomcat-7.0.54

Using CATALINA_HOME:   /usr/local/apache-tomcat-7.0.54

Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.54/temp

Using JRE_HOME:        /usr/java/jdk1.7.0_60

Using CLASSPATH:       /usr/local/apache-tomcat-7.0.54/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.54/bin/tomcat-juli.jar

[root@clouddb-mysql-203 bin]# ps -ef|grep tomcat    --查看tomcat进程

root      2059     1  0 Aug18 ?        00:00:01 automount --pid-file /var/run/autofs.pid

root      7117  7062  0 18:25 pts/0    00:00:00 grep tom

[root@clouddb-mysql-203 bin]# ./startup.sh    --开启tomcat服务

Using CATALINA_BASE:   /usr/local/apache-tomcat-7.0.54

Using CATALINA_HOME:   /usr/local/apache-tomcat-7.0.54

Using CATALINA_TMPDIR: /usr/local/apache-tomcat-7.0.54/temp

Using JRE_HOME:        /usr/java/jdk1.7.0_60

Using CLASSPATH:       /usr/local/apache-tomcat-7.0.54/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.54/bin/tomcat-juli.jar

Tomcat started.

[root@clouddb-mysql-203 bin]# ps -ef|grep tomcat    --查看tomcat进程

root      2059     1  0 Aug18 ?        00:00:01 automount --pid-file /var/run/autofs.pid

root      7126     1 99 18:25 pts/0    00:00:08 /usr/java/jdk1.7.0_60/bin/java -Djava.util.logging.config.file=/usr/local/apache-tomcat-7.0.54/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512m -Xmx1024m -XX:MaxNewSize=512m -XX:MaxPermSize=512m -Djava.endorsed.dirs=/usr/local/apache-tomcat-7.0.54/endorsed -classpath /usr/local/apache-tomcat-7.0.54/bin/bootstrap.jar:/usr/local/apache-tomcat-7.0.54/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/apache-tomcat-7.0.54 -Dcatalina.home=/usr/local/apache-tomcat-7.0.54 -Djava.io.tmpdir=/usr/local/apache-tomcat-7.0.54/temp org.apache.catalina.startup.Bootstrap start

root      7144  7062  0 18:25 pts/0    00:00:00 grep tom

[root@clouddb-mysql-203 bin]# cd ../logs

[root@clouddb-mysql-203 logs]# tail -f catalina.out    --查看tomcat启动日志,tail命令可实时更新最新日志

INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined

Aug 19, 2014 6:25:42 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined

Aug 19, 2014 6:25:42 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined

Aug 19, 2014 6:25:42 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined

Aug 19, 2014 6:25:42 PM org.apache.catalina.startup.TaglibUriRule body

INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined

log4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deployment of web application archive /usr/local/apache-tomcat-7.0.54/webapps/cmis.war has finished in 17,865 ms

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.54/webapps/docs

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.54/webapps/docs has finished in 95 ms

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.54/webapps/ROOT

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.54/webapps/ROOT has finished in 82 ms

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.54/webapps/examples

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.54/webapps/examples has finished in 374 ms

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.54/webapps/host-manager

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.54/webapps/host-manager has finished in 103 ms

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory /usr/local/apache-tomcat-7.0.54/webapps/manager

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deployment of web application directory /usr/local/apache-tomcat-7.0.54/webapps/manager has finished in 104 ms

Aug 19, 2014 6:25:54 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8080"]

Aug 19, 2014 6:25:54 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8009"]

Aug 19, 2014 6:25:54 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 18715 ms

你可能感兴趣的:(tomcat)