SSH远程启动tomcat后,退出SSH,tomcat也退出
在原本的启动命令 ./catalina.sh start前面加上nohup,即nohup ./catalina.sh start其中,nohup是linux命令,不挂断运行,具体如下:语法:nohup Command [ Arg ... ] [ & ] 描述:nohup 命令运行由 Command 参数和任何相关的 Arg 参数指定的命令,忽略所有挂断(SIGHUP)信号。在注销后使用 nohup 命令运行后台中的程序。要运行后台中的 nohup 命令,添加 & ( 表示“an.
原创
2021-07-05 15:08:42 ·
621 阅读 ·
0 评论