已解决 服务器断电后,禅道起不来了

/opt/zbox/run/apache/httpd: error while loading shared libraries: libdl.so.2: cannot open shared 

object file: No such file or directory


禅道版本 10.1 Linux一键安装包
操作系统 CentOS
客户端浏览器 Chrome

提问者: 温带阳光 悬赏: 5 日期: 2019-04-28 10:29:59 答案:1 点击:284
备注

1问题:服务器断电后就起不来禅道了

/opt/zbox/run/apache/httpd: error while loading shared libraries: libdl.so.2: cannot open shared 

object file: No such file or directoryStart Apache fail. You can see the log /opt/zbox/logs/apache_error.log

Start Mysql fail. You can see the log /opt/zbox/logs/mysql_error.log

2确认文件存在:

[root@bogon zbox]# find / -name libdl.so.2

/opt/zbox/run/lib/libdl.so.2

/lib64/libdl.so.2

3:查看配置文件库依赖地址

[root@bogon zbox]# ldd /opt/zbox/run/apache/httpd libdl.so.2

linux-vdso.so.1 =>  (0x00007ffc8b9fa000)

/lib/libhtsjava.so.1.0.19 (0x00007f153f4dd000)

libpcre.so.3 => /opt/zbox/run/lib/libpcre.so.3 (0x00007f153f29f000)

libaprutil-1.so.0 => /opt/zbox/run/lib/libaprutil-1.so.0 (0x00007f153f076000)

libapr-1.so.0 => /opt/zbox/run/lib/libapr-1.so.0 (0x00007f153ee3f000)

libpthread.so.0 => /opt/zbox/run/lib/libpthread.so.0 (0x00007f153ec1e000)

libc.so.6 => /opt/zbox/run/lib/libc.so.6 (0x00007f153e859000)

libdl.so.2 => /lib64/libdl.so.2 (0x0000003a1a400000)

libexpat.so.0 => /opt/zbox/run/lib/libexpat.so.0 (0x00007f153e62d000)

libcrypt.so.1 => /opt/zbox/run/lib/libcrypt.so.1 (0x00007f153e3f2000)

/opt/zbox/run/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003a1a000000)

4修改文件,添加路径

vi /etc/ld.so.conf

include /lib64

5使修改生效

ldconfig

问题解决


设置备注
答案列表
2019/04/28

解决问题,就好。 i_f48.gif