nginx启动报错处理方法 error while loading shared libraries:libpcre.so.1:cannot open shared object file:No su

启动nginx报错:error while loading shared libraries:libpcre.so.1:cannot open shared object file:No such file or directory

先查找到文件:find / -name “libpcre.so.1”

找到该目录后,把路径放到 /etc/ld.so.conf

这样路径就被包含到库文件的路径当中了

然后执行:ldconfig让修改生效。

操作:echo “/usr/local/lib” >> /etc/ld.so.conf

tail -1 /etc/ld.so.conf

ldconfig

nginx –t检查语法

lsof –I tcp:80

netstat –lntup | grep 80


版权声明:本文为wwzzh1989原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。