install source nginx 1.4.2

yum install gcc pcre-devel zlib-devel openssl-devel
wget http://nginx.org/download/nginx-1.4.2.tar.gz
./configure --with-http_stub_status_module --with-http_ssl_module
make
make install

note:now it's install finish already! then start nginx!

/usr/local/nginx/sbin/nginx

如果在ubuntu系统上

sudo apt-get install gcc libpcre++-dev libssl-dev make
飞儿传媒www.firadio.com
原文地址:https://www.cnblogs.com/firadio/p/3308418.html