启动nginx报错,error while loading shared libraries: libpcre.so.1l


>/usr/local/nginx/sbin/nginx -t报错,错误如下:

/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

>cd /lib64/

>ll  | grep pcre

发现少了一个符号链接,手动添加

>ln -s libpcre.so.0.0.1 libpcre.so.1

>/usr/local/nginx/sbin/nginx -t

nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

 

搞定!


发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注