Download Nginx source
http://wiki.nginx.org/NginxInstall
Configre Nginx
Where I have extracted the Nginx source to, I used the compile-time option #3 found at:
http://wiki.nginx.org/NginxInstallOptions
http://wiki.nginx.org/Modules
Compile and Install Nginx./configure \ --prefix=/etc/nginx \ --sbin-path=/usr/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ --error-log-path=/var/log/nginx/error.log \ --http-log-path=/var/log/nginx/access.log \ --pid-path=/var/run/nginx.pid \ --lock-path=/var/run/nginx.lock \ --http-client-body-temp-path=/var/cache/nginx/client_temp \ --http-proxy-temp-path=/var/cache/nginx/proxy_temp \ --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \ --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \ --http-scgi-temp-path=/var/cache/nginx/scgi_temp \ --user=nginx \ --group=nginx \ --without-http_autoindex_module \ --without-http_browser_module \ --without-http_charset_module \ --without-http_empty_gif_module \ --without-http_geo_module \ --without-http_limit_conn_module \ --without-http_memcached_module \ --without-http_referer_module \ --without-http_scgi_module \ --without-http_split_clients_module \ --without-http_ssi_module \ --without-http_upstream_ip_hash_module \ --without-http_userid_module \ --without-http_uwsgi_module \--without-http_fastcgi_module \
In the same directory, perform
make && make installDownload The Nginx Service File
http://wiki.nginx.org/InitScripts
Không có nhận xét nào:
Đăng nhận xét