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