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 11# 12.3 应用部署
22程序开发完毕之后,我们现在要部署Web应用程序了,但是我们如何来部署这些应用程序呢?因为Go程序编译之后是一个可执行文件,编写过C程序的读者一定知道采用daemon就可以完美的实现程序后台持续运行,但是目前Go还无法完美的实现daemon,因此,针对Go的应用程序部署,我们可以利用第三方工具来管理,第三方的工具有很多,例如Supervisord、upstart、daemontools等,这小节我介绍目前自己系统中采用的工具Supervisord。
33## 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一个出来,因为没有一种简单的方法来确保所有已经使用的线程的状态一致性问题。
55
66但是我们可以看到很多网上的一些实现daemon的方法,例如下面两种方式:
77
@@ -178,4 +178,4 @@ Supervisord安装完成后有两个可用的命令行supervisor和supervisorctl
178178## links
179179 * [ 目录] ( < preface.md > )
180180 * 上一章: [ 网站错误处理] ( < 12.2.md > )
181- * 下一节: [ 备份和恢复] ( < 12.4.md > )
181+ * 下一节: [ 备份和恢复] ( < 12.4.md > )
You can’t perform that action at this time.
0 commit comments