安裝nginx
下載nginx:
wget http://nginx.org/download/nginx-1.6.2.tar.gz
解壓安裝包:
tar zxvf nginx-1.6.2.tar.gz
進(jìn)入安裝包目錄:
cd nginx-1.6.2
編譯安裝(默認(rèn)地址 /usr/local/nginx)
./configure
也可以自定義編譯:
./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/src/pcre-8.35
安裝:
make && make install
檢測(cè)
/usr/local/nginx/sbin/nginx -t
說明
本文只做學(xué)習(xí)參考,如有任何不準(zhǔn)確的地方歡迎指正。
我的郵箱:
lulongji2011@163.com