V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
jacy
V2EX  ›  Linux

ssh远程执行了一个程序,忘记先screen了,不方便结束程序,怎样让程序断开ssh后继续运行?

  •  
  •   jacy · Jan 20, 2014 · 5674 views
    This topic created in 4484 days ago, the information mentioned may be changed or developed.
    9 replies    1970-01-01 08:00:00 +08:00
    multiple1902
        1
    multiple1902  
       Jan 20, 2014
    disown
    horsley
        3
    horsley  
       Jan 21, 2014   ❤️ 1
    ctrl-z bg之后一切好说
    adrianzhang
        5
    adrianzhang  
       Jan 21, 2014
    3楼正解
    orzfly
        6
    orzfly  
       Jan 21, 2014
    @horsley 就算丢 bg 了退出 shell 的时候一样会被杀吧…… 因为他们还没摆脱主从关系……
    lm902
        7
    lm902  
       Jan 21, 2014
    disown是嘛0.0一直在用nohup
    horsley
        8
    horsley  
       Jan 21, 2014
    @orzfly 我说丢bg之后一切好说并不是说那样就完事了,而是通过这样的方式脱离开,然后采取下一步措施,你想想如果你没用nohup之类的,程序已经在跑了,就得这样啊
    msg7086
        9
    msg7086  
       Jan 22, 2014
    借贴问下,ctrl-z+bg以后,能不能开一个screen然后在里面fg出来?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2482 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    ♥ Do have faith in what you're doing.