nginx排錯error while loading shared libraries:libpcre.so.1:cannot open shared object file:No such file or directory


啟動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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM