1. 程式人生 > >nginx 編譯安裝

nginx 編譯安裝

login .gz nologin cati down PE AR config IT

mkdir -p /application/tools

cd /application/tools/

wget -q http://nginx.org/download/nginx-1.6.3.tar.gz

ls -l nginx-1.6.3.tar.gz

useradd nginx -s /sbin/nologin -M

tar -xf nginx-1.6.3.tar.gz

cd nginx-1.6.3

yum install openssl-devel openssl -y

./configure --user=nginx --group=nginx --prefix=/application/nginx-1.6.3/ --with-http_stub_status_module --with-http_ssl_module
262 make
263 make install

/application/nginx/sbin/nginx

nginx 編譯安裝