xshell远程linux服务器,启动 tomcat ,xshell关闭,tomcat停止
解决办法:
1、命令前加上nohup 如:nohup ./startWebLogic.sh
2、yum install screen
shell> screen -S test #创建一个新的窗口,这个窗口关闭时程序不会关闭
shell> java -jar test.jar #运行jar包
文章介绍了两种方法确保Linux服务器上的tomcat在xshell关闭后仍能继续运行。一种是使用nohup命令,另一种是安装screen并创建新窗口运行jar包,这样即使shell会话结束,程序也不会停止运行。
xshell远程linux服务器,启动 tomcat ,xshell关闭,tomcat停止
解决办法:
1、命令前加上nohup 如:nohup ./startWebLogic.sh
2、yum install screen
shell> screen -S test #创建一个新的窗口,这个窗口关闭时程序不会关闭
shell> java -jar test.jar #运行jar包
1532

被折叠的 条评论
为什么被折叠?