我试过nohup "sbt run" &
如何将sbt作为守护进程运行?
回报:nohup: failed to run command ‘sbt run’: No such file or directory
,并试图:
nohup sbt run &
[2] 7897
# nohup: ignoring input and appending output to ‘nohup.out’
当我回车期待进程继续运行,我收到:
[2]+ Stopped nohup sbt run
如何运行sbt作为一个守护进程?
更新:
sbt run </dev/null &
[5] 8961
我觉得CD了一个目录:
# cd ..
[5]+ Stopped sbt run < /dev/null (wd: /home/sum)
(wd now: /home)
所以它开始作为后台进程,但如果我执行任何操作,例如更改目录,它杀死的过程吗?如何保持过程运行?
请参阅更新 –
@蓝天更新。 –