Keep play application running after putty terminal closed

£可爱£侵袭症+ 提交于 2019-12-07 02:37:30

use screen to start your application. view existing screens with "screen -ls" and switch between them with "screen -r" http://wiki.ubuntuusers.de/screen

I would recommend nohup:

nohup ./script -Dhttp.port=8000 &

It will create nohup.out file with all the logs. If you want to quit it, grep RUNNING_PID and sudo kill it.

Got the answer! Using & symbol run the process in background so that even if putty terminal is closed, process not terminated.

./{myplayapp}/bin/{executable} -Dhttp.port=8000 > app.out &
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!