nginx启动报错sbin/nginx: error while loading shared libraries:

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

解决方案:

--确认依据安装PCRE
[root@centos ~]# cd /lib
[root@centos lib]# ls *pcre*
libpcre.so.0  libpcre.so.0.0.1
[root@centos nginx]# find / -type f -name*libpcre.so.*

--软连接
[root@centos nginx]# ln -s /lib/libpcre.so.0.0.1 /lib/libpcre.so.1
--启动nginx服务
[root@centos sbin]# ./nginx
--查看进程
[root@centos sbin]# ps -aux|grep nginx

你可能感兴趣的:(nginx启动报错sbin/nginx: error while loading shared libraries:)