文章目录
Install Nginx
Download package from https://nginx.org/download/nginx-1.16.1.tar.gz
tar zxvf nginx-1.16.1.tar.gz
cd nginx-1.16.1/
sudo ./configure --with-http_stub_status_module --with-http_ssl_module
sudo make
sudo make install
Install dependencies if need. (e.g. pcre pcre-devel, zlib zlib-develo, penssl, openssl-devel)
Configuration summary
+ using system PCRE library
+ OpenSSL library is not used
+ using system zlib library
Install done.
$ sudo nginx -V
nginx version: nginx/1.16.1
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --with-http_stub_status_module --with-http_ssl_module
Startup Nginx
ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
sudo nginx
$ ps aux|grep nginx
root