1 環境準備
<code>CentOS 7.0 x86_64</code>
<code>nginx-1.7.10</code>
2 安裝Nginx
<code><span># useradd nginx -s /sbin/nologin</span><span># id nginx</span></code>
<code>yum install pcre<span>-devel</span> openssl<span>-devel</span></code>
啟動nginx
<code><span># wget 'http://nginx.org/download/nginx-1.7.10.tar.gz'</span><span># tar xzvf nginx-1.7.10.tar.gz</span><span># cd nginx-1.7.10</span><span># </span><span># ./configure --prefix=/home/nginx --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre</span><span># make && make install</span></code>