nginx部署

1.安装依赖
yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel
2.安装pcre
cd /usr/local/src/
tar -zxvf pcre-8.35.tar.gz
cd pcre-8.35
./configure
make && make install
pcre-config --version
3.安装nginx
cd /usr/local/src/
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
nginx -s reload
nginx -s reopen
nginx -s stop
原文地址:https://www.cnblogs.com/kylingx/p/12260202.html