SSH重启linux服务器

1549年前 (2016-01-23)站长必知4166

[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==fb017e93506940b601513d61f7101e66

本文原创,转载必追究版权。

相关文章

linux环境下如何安装宝塔(服务器管理面板)

linux环境下如何安装宝塔(服务器管理面板)

Centos安装命令 yum install -y wget && wget -O install.sh http://download.bt.cn/install/in...

Linux学习基础篇(一)-Linux系统中各目录的作用

Linux学习基础篇(一)-Linux系统中各目录的作用

目录名目录作用         /bin/存放系统命令的目录, 普通用户和超级用户都可以执行。 不过放在/bin下的命令在单用户模式下也可以执行 &nbs...

ssh重启linux下的 mysql

1、查看mysql版本方法一:status;方法二:select version();2、Mysql启动、停止、重启常用命令a、启动方式1、使用 service 启动:[root@localhost...

linux查看进程及杀掉进程

linux查看进程及杀掉进程

查看进程:1、ps 命令用于查看当前正在运行的进程。grep 是搜索例如: ps -ef | grep java表示查看所有进程里 CMD 是 java 的进程信息2、ps -aux | grep j...

linux 下载及安装ffmpeg

    java项目在压缩视频的时候使用了ffmpeg.exe,在windows系统下可以使用,发布到linux后无法直接调用ffmpeg.exe文件,需要在linux系统下安装f...

linux系统  vi命令修改文件内容

linux系统 vi命令修改文件内容

以修改木项目application.yml里的内容为例:进入vi,输入以下命令,格式为:vi 文件路径vi /data/AAS-V9.0/domains/mydomain/deploy/sd...

评论列表

点我收录您
9年前 (2016-05-18)

啥时候上HTTPS呀?

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。