标题:centos 安装 daemontools 出处:Felix021 时间:Fri, 26 May 2017 00:10:22 +0000 作者:felix021 地址:https://www.felix021.com/blog/read.php?2175 内容: 09年在B公司实习的时候从运维同学偷师知道了daemontools这个package,有个supervise命令特别好用(很符合B公司当时宣传的“简单可依赖”),以前用ubuntu/debian,apt-get直接就装上了。现在线上用的是centos,需要自己编译安装,稍微麻烦点。具体的过程在官网 http://cr.yp.to/daemontools/install.html 说得还是比较详细了,不过编译的时候可能会报错 引用 ./load envdir unix.a byte.a /usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o /lib64/libc.so.6: could not read symbols: Bad value collect2: error: ld returned 1 exit status 搜了一下,解决方案也很简单: 引用 The fix is quite simple: explicitly add #include to the offending file and then recompile. 按照说明,在 src/error.h 里面添加了这句再编译就通过了。 Generated by Bo-blog 2.1.0