To upgrade nginx or add new parameters to nginx, use the following method to seamlessly upgrade nginx: Download Software # wgethttp: Composer # cdn
To upgrade nginx or add new parameters to nginx, follow these steps:
// Download the software
# Wget http://docs.linuxtone.org/soft/lemp/packages/nginx-0.8.53.tar.gz-P/usr/local/src
#Cd/Usr/local/src
# Tar zxvf nginx-0.8.53.tar.gz
# Cd nginx-0.8.53
#./Configure -- user = daemon -- group = daemon -- prefix =/usr/local/nginx/-- with-http_stub _StatUs_moDuLe \
-- With-http_ssl_module -- with-http _SuB _module -- with-md5 =/usr/lib -- with-sha1 =/usr/lib -- with-http_gZip_ Static_module -- with-http_realip_module
// Do not make install
# Make-j8
// Back up nginx
#Mv/Usr/local/nginx/sbin/nginx. old
// Nginx under the new objsCpTo sbin
# Cp objs/nginx/usr/local/nginx/sbin/nginx
// Test it
#/Usr/local/nginx/sbin/nginx-t
// Upgrade
# Make upgrade
// Check whether the upgrade is successful
#/Usr/local/nginx/sbin/nginx-V
// Upgrade completed
OriginalBbs.Linuxtone.org