golang 在linux上后台运行的方法

go build ./index.go

会生成一个index的运行文件

nohup index &

后台运行index文件

killall index

你可能还要关闭index

posted @ 2016-08-29 09:30  bysir  阅读(7106)  评论(0编辑  收藏  举报