>/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
搞定!