我正在尝试从 PHP 迁移到 Go 并计划完全删除 nginx。但是我不知道如何在后台将 go http 网络服务器作为守护进程运行,也不知道如何在重新启动时自动启动网络服务器,或者如何终止该进程。
使用 nginx 我所做的就是
$ systemctl start nginx.service
$ systemctl restart nginx.service
$ systemctl stop nginx.service
$ systemctl enable nginx.service
$ systemctl disable nginx.service
这很方便,但似乎我不能用 Go http 服务器来做到这一点。我必须像任何其他 Go 程序一样编译和运行它。对于这些问题,有哪些解决方案?
Cats萌萌
如何在CentOS 7上安装Redis服务器
将jsp文件发布到网络服务器上也是这样操作吗
运行在服务器端的程序有哪些?
大家好,怎样检测服务器是否崩溃了
相关分类