#安装编译工具 yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel #安装PCRE # http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz #或者 cd /usr/local/src/ wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz tar zxvf pcre-8.35.tar.gz cd pcre-8.35 ./configure make && make install pcre-config --version #安装nginx #https://nginx.org/en/download.html #或者 cd /usr/local/src/ wget http://nginx.org/download/nginx-1.6.2.tar.gz tar zxvf nginx-1.6.2.tar.gz cd nginx-1.6.2 ./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 /usr/local/webserver/nginx/sbin/nginx -v #安装成功后,nginx文件夹/usr/local/nginx
|