使用命令nohup,不挂断运行
在退出xshell后,连接中断,tomcat关闭,一般会用&符号在命令结尾让程序保持运行
用法:进入到tomcat的bin文件目录下
输入命令
nohup ./catalina.sh run &
显示为:
[1]8579
nohup: ignoring input and appending output to `nohup.out'
如何关掉?
输入命令查看进程号
# ps -ef |grep tomcat
kill -9 33345