解决方法:是由于nginx高版本的需要使用pcre原文件路径。解压pcre-7.9.tar.gz例如解压后位置在/home/wang/pcre-7.9位置使用nginx配置的时候./configure --with-pcre=/home/wang/pcre-7.9 --prefix=/opt/nginx 再次编译问题解决。 唯有热爱方能抵御岁月漫长。