linux中重启ssh服务器,SSH重启linux服务器
[root@centos6 ~]# sh stop.shsh: stop.sh: No such file or directory[root@centos6 ~]# ps -ef|grep javaroot 487 1 1 Jan20 ? 00:33:55 /usr/local/jdk1.7.0_75/jre/bin/java -Djava.util.logging....
[root@centos6 ~]# sh stop.sh
sh: stop.sh: No such file or directory
[root@centos6 ~]# ps -ef|grep java
root 487 1 1 Jan20 ? 00:33:55 /usr/local/jdk1.7.0_75/jre/bin/java -Djava.util.logging.config.file=/usr/local/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/tomcat7/endorsed -classpath /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat7 -Dcatalina.home=/usr/local/tomcat7 -Djava.io.tmpdir=/usr/local/tomcat7/temp org.apache.catalina.startup.Bootstrap start
root 26995 26956 0 14:48 pts/0 00:00:00 grep java
[root@centos6 ~]# kill -9 487 ---------- --“关闭服务”
[root@centos6 ~]# cd /usr/local/tomcat7/bin ---------- --“到服务器的路径”
[root@centos6 bin]# sh start.sh ---------- --“重启服务”/或 ./startup.sh
Using CATALINA_BASE: /usr/local/tomcat7
Using CATALINA_HOME: /usr/local/tomcat7
Using CATALINA_TMPDIR: /usr/local/tomcat7/temp
Using JRE_HOME: /usr/local/jdk1.7.0_75/jre
Using CLASSPATH: /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar
Tomcat started.
[root@centos6 bin]#tail -f /usr/local/tomcat7/logs/catalina.out -----------"日志"
Jan 22, 2016 2:49:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-80"]
Jan 22, 2016 2:49:05 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 22, 2016 2:49:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 540 ms
Jan 22, 2016 2:49:05 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 22, 2016 2:49:05 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
Jan 22, 2016 2:49:16 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [10,580] milliseconds.
Jan 22, 2016 2:49:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/docs
Jan 22, 2016 2:49:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/docs has finished in 44 ms
Jan 22, 2016 2:49:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/sdta_county
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/sdta_county has finished in 1,130 ms
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/manager
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/manager has finished in 40 ms
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/examples
Jan 22, 2016 2:49:18 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 22, 2016 2:49:18 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 22, 2016 2:49:18 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@7640b65e')
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/examples has finished in 198 ms
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/host-manager
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/host-manager has finished in 31 ms
Jan 22, 2016 2:49:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/docs
Jan 22, 2016 2:49:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/docs has finished in 50 ms
Jan 22, 2016 2:49:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/sdta_county
Jan 22, 2016 2:49:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/sdta_county has finished in 967 ms
Jan 22, 2016 2:49:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/ROOT
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/ROOT has finished in 24 ms
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/manager
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/manager has finished in 30 ms
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/examples
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/examples has finished in 119 ms
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /usr/local/tomcat7/webapps/host-manager
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /usr/local/tomcat7/webapps/host-manager has finished in 28 ms
Jan 22, 2016 2:49:20 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-80"]
Jan 22, 2016 2:49:20 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 22, 2016 2:49:20 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 15092 ms
getPara==fb017e93506940b601513d61f7101e66http://www.swzhinan.com/
本文由站长原创或收集,不代表本站立场,如若转载,请注明出处:http://www.swzhinan.com/post/71.html
更多推荐
所有评论(0)