linux 后台启动服务 nohup &

一般启动方式:

./standalone.sh  

启动后,当关闭命令行窗口时,服务会停止。

后台服务(守护进程方式)启动方式:

nohup ./standalone.sh &

启动后,关闭命令行窗口,服务不受影响。

猜你喜欢

转载自huangqiqing123.iteye.com/blog/2413070