您的位置:首页 > 运维架构 > Nginx

Nginx的配置正确性检查

2016-03-31 13:49 507 查看
Nginx的配置正确性检查报错:
[root@ser conf]# /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

解决办法:
[root@ser /]# cd lib64/
[root@ser lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1

[root@ser conf]# /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
此时问题已解决
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  libpcre.so.1