遇到/bin/sh: 第 0 行:cd: ../pcre-8.38: 没有那个文件或目录
需安装pcre
下载
http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
上传到/usr/local下
pcre解压编译
tar -zxvf pcre-8.35.tar.gz
mv pcre-8.35 /usr/local/src/
cd /usr/local/src/pcre-8.35
./configure
make && make install
回到nginx解压后的安装路径,执行
./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35
make
make install
问题即可解决