1. 程式人生 > >nginx1.14.0安裝

nginx1.14.0安裝

nginx

nginx1.14.0安裝
yum install pcre pcre-devel -y
yum install -y openssl openssl-devel
useradd nginx -s /sbin/nologin -M
cd /root/
wget -q http://nginx.org/download/nginx-1.14.0.tar.gz
tar xf nginx-1.14.0.tar.gz
cd nginx-1.14.0
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx/ --with-http_stub_status_module --with-http_ssl_module
make
make install

/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx -V

nginx1.14.0安裝