apt-get install libpcre++-dev -y
apt-get install zlib1g-dev -y
apt-get install make -y
./configure --user=nobody --group=nogroup --prefix=/usr/nginx --with-http_stub_status_module --with-debug --with-http_sub_module
make -j 24
make install
echo /usr/nginx/sbin/nginx >> /etc/rc.local
转载于:https://blog.51cto.com/weijixian1015/775382