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
此时问题已解决