Centos7系统,加一个/lib/systemd/system/goapp.service 执行文件: [Unit] Description="golang app daemonize systemd" After=network