当前位置:论坛首页 > Linux面板 > Linux面板教程

天翼云重启Nginx:error while loading shared libraries: liblz4.so.1

发表在 Linux面板2021-2-4 15:38 [复制链接] 2 3310

今天早上 的时候,有位plus用户问  重启Nginx报这个错误,怎么解决呀,
  1. error while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directoryerror while loading shared libraries: liblz4.so.1: cannot open shared object file: No such file or directory<p></p><div></div>
复制代码
我首先看到有个liblz4.so这个共享库不存在,大概是安装的时候选择的是急速安装的,导致这个库没有加载到或者没有安装上,给出的解决方案1 是使用编译方式安装下Nginx。不得不说,客户的机器真的很强,一会就编译好了,但是启动报错,这错误很明显:哦豁,不就是端口被占用了嘛,引起这个的问题就是有服务器使用这些端口pkill -9 nginx
,先杀死服务,再重启  /etc/init.d/nginx start 试试
到这里大家觉得已经解决了吧!要是已经解决了本帖就无意义了。。 tm.gif
  1. Starting nginx... nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)
  2. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  3. nginx: [emerg] bind() to 0.0.0.0:719 failed (98: Address already in use)
  4. nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  5. nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)
  6. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  7. nginx: [emerg] bind() to 0.0.0.0:719 failed (98: Address already in use)
  8. nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  9. nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)
  10. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  11. nginx: [emerg] bind() to 0.0.0.0:719 failed (98: Address already in use)
  12. nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  13. nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)
  14. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  15. nginx: [emerg] bind() to 0.0.0.0:719 failed (98: Address already in use)
  16. nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  17. nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Address already in use)
  18. nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
  19. nginx: [emerg] bind() to 0.0.0.0:719 failed (98: Address already in use)
  20. nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
  21. nginx: [emerg] still could not bind()
  22. failed
复制代码
后面到 rpm包官网找到了这个
nginx共享包.png
查看客户的操作系统版本是CentOS7.3.这个包是CentOS7.9的,给客户沟通,升级下操作系统吧,
  1. yum update -y
复制代码
期间更还被系统加固拦截,又让用户关闭了下系统加固,天翼云,网速可以的,YES! 等了5分钟不到,666666,升级成功,重新编译Nginx  可以了

nnginxsss.png

使用道具 举报 只看该作者 回复
发表于 2021-2-4 15:40:28 | 显示全部楼层
奉上膝盖
使用道具 举报 回复
发表于 2021-2-4 15:40:36 | 显示全部楼层
火钳刘明 炮哥辛苦啦
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表