Installation NGINX need to install zlib, pcre, openssl library and other necessary
When easy installation of these libraries can be installed via yum, if the production environment has on the performance of direct, simple to install all source code compilation
- Do not specify a prefix of the path, the default installed / usr / local / nginx / directory
yum install -y wget gcc gcc-c++ make pcre pcre-devel zlib zlib-devel openssl openssl-devel cd /usr/local/src wget 'http://nginx.org/download/nginx-1.16.1.tar.gz' tar -zxvf nginx-1.16.1.tar.gz cd nginx-1.16.1 ./configure make && make install