Nginx的配置正确性检查
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx的配置正确性检查相关的知识,希望对你有一定的参考价值。
nginx的配置正确性检查报错:
[[email protected] 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
解决办法:
[[email protected] /]# cd lib64/
[[email protected] lib64]# ln -s libpcre.so.0.0.1 libpcre.so.1
[[email protected] 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
此时问题已解决
本文出自 “愿与您分享” 博客,请务必保留此出处http://9265463.blog.51cto.com/9255463/1758805
以上是关于Nginx的配置正确性检查的主要内容,如果未能解决你的问题,请参考以下文章