go写的程序 如何后台运行

别告诉我nohup & 谢谢!

已邀请:

songtianyi

赞同来自: astaxie

You can't daemonize the usual way in Go. Daemonizing is a Unix concept that requires some specific things you can't do easily in Go

一般server端有这么几种方式

  1. 自己写一个守护进程
  2. 你可以打包到docker镜像里,让docker daemon来管理, 同时也方便自己更新
  3. 使用Supervisor or Supervisor likes
  4. nohup
  5. systemd

itfanr - @inspur

赞同来自:

nohup 吧

要回复问题请先登录注册