Notes for seamless nginx upgrade

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.