Nginx install the source installation

 

nginx deployment

  1. install dependencies

yum install gcc gccc++ pcre pcre-devel zlib zlib-devel openssl openssl-devel-y

  2. Download the source package nginx

wget http://nginx.org/download/nginx-1.16.1.tar.gz

  3. Extract nginx

tar zxvf nginx-1.16.1.tar.gz

  4. compile and install nginx

cd nignx-1.16.1
./configure --prefix=/usr/local/nginx \
--with-http_dav_module \
--with-http_stub_status_module \
--with-http_addition_module \
--with-http_sub_module \
--with-http_flv_module \
--with-http_mp4_module \
--with-http_ssl_module  \
--with-http_gzip_static_module \
--user=nginx \
--group=nginx
make&& make install

  5. Start nginx

/usr/local/nginx/sbin/nginx 

  6. verification (process, port)

 

 

Guess you like

Origin www.cnblogs.com/llinux/p/11402770.html