File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
# 12.3 应用部署
2
2
程序开发完毕之后,我们现在要部署Web应用程序了,但是我们如何来部署这些应用程序呢?因为Go程序编译之后是一个可执行文件,编写过C程序的读者一定知道采用daemon就可以完美的实现程序后台持续运行,但是目前Go还无法完美的实现daemon,因此,针对Go的应用程序部署,我们可以利用第三方工具来管理,第三方的工具有很多,例如Supervisord、upstart、daemontools等,这小节我介绍目前自己系统中采用的工具Supervisord。
3
3
## daemon
4
- 目前Go程序如果要实现daemon还不行 ,详细的见这个Go语言的bug:<` http://code.google.com/p/go/issues/detail?id=227 ` >,大概的意思说很难从现有的使用的线程中fork一个出来,因为没有一种简单的方法来确保所有已经使用的线程的状态一致性问题。
4
+ 目前Go程序还不能实现daemon ,详细的见这个Go语言的bug:<` http://code.google.com/p/go/issues/detail?id=227 ` >,大概的意思说很难从现有的使用的线程中fork一个出来,因为没有一种简单的方法来确保所有已经使用的线程的状态一致性问题。
5
5
6
6
但是我们可以看到很多网上的一些实现daemon的方法,例如下面两种方式:
7
7
@@ -178,4 +178,4 @@ Supervisord安装完成后有两个可用的命令行supervisor和supervisorctl
178
178
## links
179
179
* [ 目录] ( < preface.md > )
180
180
* 上一章: [ 网站错误处理] ( < 12.2.md > )
181
- * 下一节: [ 备份和恢复] ( < 12.4.md > )
181
+ * 下一节: [ 备份和恢复] ( < 12.4.md > )
You can’t perform that action at this time.
0 commit comments