• we
    2019-08-04
    nohup 与 & 配合使用。
    
     1
  • 心境
    2019-10-21
    请问如何关闭系统自带的watchdog服务呢,我用systemctl disable watchdig-mux没有效果,查看显示依然为static

    作者回复: systemctl 的 disable 表示下次启动不加载, 如果想停止需要使用 systemctl stop 选项

     1
    
  • 欢喜哥
    2019-09-10
    nohup ./course &

    [1] 8504

    [root@VM_16_11_centos shoes]# nohup: ignoring input and appending output to 'nohup.out'

    course是我用go语言开发然后编译成的二进制文件,用nohup启动,提示如上,但是关闭终端还是程序停止,请教老师如何解决关闭终端,程序不停止?
    展开

    作者回复: 从两方面检查一下,是否没关闭之前course程序就已经停止了;另一方面course程序在fork子进程或者关闭文件描述符的时候是否有特殊的设置,导致程序退出

    
    
  • we
    2019-08-04
    daemon 进程 无终端启动。父进程是1
    
    
我们在线,来聊聊吧