前几天嫌WDCP的云锁有些累赘,就卸载了,今日重启一下服务器,结果WDCP死活启动不了
查询日志:
Starting nginx: /www/wdlinux/nginx/sbin/nginx: error while loading shared libraries: libutility_linux.so: cannot open shared object file: No such file or directory [FAILED]
尝试列出动态库依赖关系:
root@zzz:[~]ldd $(which /www/wdlinux/nginx/sbin/nginx) linux-vdso.so.1 => (0x00007ffd455c0000) libutility_linux.so => not found libfilter_kernel_linux.so => not found libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2f68904000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f2f686cd000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f2f684c8000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f2f682b2000) libc.so.6 => /lib64/libc.so.6 (0x00007f2f67eef000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f2f67be7000) /lib64/ld-linux-x86-64.so.2 (0x00007f2f68b2e000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f2f679e4000) libm.so.6 => /lib64/libm.so.6 (0x00007f2f676e2000)
可以看出是2个so文件无法加载成功,高度疑似是卸载后遗症,但不像重新安装这个云锁,也不想复制已经被卸载的文件来冶。
找寻了一番,现把解决过程分享一下(网上有说要重新编译nginx的,本人尝试使用WDCP升级脚本解决成功):
root@zzz:[~]wget http://down.wdlinux.cn/in/nginx_up.sh root@zzz:[~]sh nginx_up.sh 1.18.0 root@zzz:[~]service nginxd restart