When not destroying the nginx applications and configuration files, upgrade nginx.
Download the new version of nginx compile
Use nginx -V parameter to get the current version and configuration parameters
nginx version: nginx/1.10.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module
I need to upgrade the current version is 1.10.3 1.16.1 for downloading on nginx start with the latest official stable version 1.16.1 source package to decompress
Using an older version of the configuration parameters
./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_ssl_module
Then compile
make
Nginx backup the old version of the executable program nginx source package objs copied to nginx / sbin / lower
View using nginx -V version upgrade was successful.