使用xshell连接linux,重启tomcat

来源:互联网 发布:传输层协议端口号 编辑:程序博客网 时间:2024/05/23 09:58
使用xshell---ctrl+alt+f(新建文件传输窗口)快键键将.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\下的已编译好的项目放到/usr/tomcat8/webapps(根据tomcat8自己安装的路径决定)下。1、cd /usr/tomcat8/bin   ---根据tomcat8自己安装的路径决定2、./shutdown.sh
如果报connection refused,本身还没启动,忽略,可跳到第三步查看tomcat进程是否开启,或直接第六步。3、ps -ef|grep java   ----- 查看是否已关闭4、 kill -9 xx   ----强制关闭,xx为进程号5、ps -ef|grep java 6、./startup.sh
ps -ef|grep 8080查看8080端口的进程号ps -ef|grep tomcat 查看tomcat占据的进程号linux 查看实时日志:

1、先切换到:cd usr/local/tomcat5/logs

2、tail -f catalina.out

Ctrl+c 是退出tail命令。

0 0
原创粉丝点击