mkdir /data
mkdir /data/nginx
mkdir /data/nginx/tmp
mkdir /data/nginx/conf
mkdir /data/nginx/run
mkdir /data/nginx/sbin
mkdir /data/nginx/logs
cd /tmp
wget http:
wget http:
wget http:
wget http:
./configure --prefix=/data/nginx --sbin-path=/data/nginx/sbin --conf-path=/data/nginx/conf/nginx.conf --pid-path=/data/nginx/run/nginx.pid --lock-path=/data/nginx/run/nginx.lock --http-client-body-temp-path=/data/nginx/tmp/client_temp --http-proxy-temp-path=/data/nginx/tmp/proxy_temp --http-fastcgi-temp-path=/data/nginx/tmp/fastcgi_temp --http-uwsgi-temp-path=/data/nginx/uwsgi_temp --http-scgi-temp-path=/data/nginx/tmp/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-pcre=/tmp/pcre-8.37 --with-openssl=/tmp/openssl-0.9.8zg --with-zlib=/tmp/zlib-1.2.8
make && make install
/usr/sbin/groupadd -f nginx
/usr/sbin/useradd -g nginx nginx
/data/nginx/sbin/nginx -c /data/nginx/conf/nginx.conf
/data/nginx/sbin/nginx -s reload