啟動nginx提示:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory,意思是找不到libpcre.so.1這個模組,而導致啟動失敗。
[root@lab ~]# /usr/local/web/nginx/sbin/nginx nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
如果是32位元系統
[root@lee ~]# ln -s /usr/local/lib/libpcre.so.1 /lib如果是64位元系統
[root@lee ~]# ln -s /usr/local/lib/libpcre.so.1 /lib64然後在啟動nginx就OK了
[root@lee ~]# /usr/local/webserver/nginx/sbin/nginx