Detailed explanation of smooth upgrade of nginx

Posted by jboy6t9 on Fri, 18 Feb 2022 02:06:49 +0100

1. Why upgrade nginx smoothly

As nginx becomes more and more popular, and the advantages of nginx become more and more obvious, the version iteration of nginx also comes to the acceleration mode. Version 1.9.0 of nginx updates many new functions, such as the four-tier agent function of stream. With the wide application of nginx, the version upgrade must be faster and faster, and the online business cannot be stopped. At this time, the upgrade of nginx is the work of operation and maintenance

Nginx easily helps us achieve a smooth upgrade. Its principle is simply summarized as follows: (1) start a new process without stopping the old process. (2) The old process is responsible for processing requests that are still not processed, but will no longer accept processing requests. (3) The new process accepts new requests. (4) The old process handles all requests, closes all connections, and then stops. In this way, the smooth upgrade is easily realized. In general, there are two situations where nginx needs to be upgraded: one is to upgrade the version of nginx, and the other is to add new modules to nginx

2. Introduction to Nginx signal

Signals supported by the main process

  • TERM, INT: exit now
  • QUIT: wait for the end of the work process before exiting
  • KILL: force process termination
  • HUP: reload the configuration file, start the working process with the new configuration, and gradually close the old process.
  • USR1: reopen log file
  • USR2: start a new main process to realize hot upgrade
  • WINCH: gradually close the working process

Signals supported by work process

  • TERM, INT: exit now
  • QUIT: wait until the request processing is completed before exiting
  • USR1: reopen log file

3. nginx smooth upgrade actual combat

3.1 view the existing nginx compilation parameters

[root@nginx-server ~]# /usr/local/nginx/sbin/nginx -V

Install nginx according to the original compilation parameters. Just go to make and never make install. If make install, the original configuration file will be overwritten

[root@nginx-server ~]# cd /usr/local/nginx-1.16.0/
[root@nginx-server nginx-1.16.0]# ./configure --prefix=/usr/local/nginx --group=nginx --user=nginx --sbin-path=/usr/local/nginx/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/tmp/nginx/client_body --http-proxy-temp-path=/tmp/nginx/proxy --http-fastcgi-temp-path=/tmp/nginx/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-pcre --with-http_realip_module --with-stream --with-http_image_filter_module
[root@nginx-server nginx-1.16.0]# make

3.2 backup the original nginx binary file

Back up binaries and nginx configuration files (during which nginx will not stop service)

[root@nginx-server nginx-1.16.0]# mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx_$(date +%F)

3.3 copy the new nginx binary file and enter the new nginx source code package

[root@nginx-server nginx-1.16.0]# cp /usr/local/nginx-1.16.0/objs/nginx /usr/local/nginx/sbin/

3.4 test whether the new version of nginx is normal

[root@nginx-server nginx-1.16.0]# /usr/local/nginx/sbin/nginx -t

3.5 send a smooth migration signal to nginx (if you don't know the pid path, please check the nginx configuration file)

[root@nginx-server ~]# kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`

3.6 check nginx pid, and an nginx will appear pid. oldbin

[root@nginx-server logs]# ll nginx.pid*
-rw-r--r-- 1 root root 6 5 July 10:58 nginx.pid
-rw-r--r-- 1 root root 6 5 July 9:56 nginx.pid.oldbin

3.7 calmly shut down the old Nginx process

[root@nginx-server ~]# kill -WINCH `cat /usr/local/nginx/logs/nginx.pid.oldbin`

3.8 do not overload the configuration and start the old working process at this time

[root@nginx-server ~]# kill -HUP `cat /usr/local/nginx/logs/nginx.pid.oldbin`

3.9 finish the work process and complete the upgrade

[root@nginx-server ~]# kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`

3.10 verify whether the upgrade of Nginx is successful

[root@nginx-server ~]# /usr/local/nginx/sbin/nginx -V

4. Upgrade experiment

4.1 install and configure version 1.6 nginx and restart a machine

[root@localhost ~]# yum install -y gcc gcc-c++ pcre-devel openssl-devel zlib-devel
[root@localhost ~]# tar xzf nginx-1.6.3.tar.gz -C /usr/local/
[root@localhost ~]# cd /usr/local/nginx-1.6.3
[root@localhost nginx-1.6.3]# ./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module
[root@localhost nginx-1.6.3]# make && make install
[root@localhost nginx-1.6.3]# useradd -M -s /sbin/nologin nginx
[root@localhost nginx-1.6.3]# /usr/local/nginx/sbin/nginx -t 
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@localhost nginx-1.6.3]# /usr/local/nginx/sbin/nginx 
[root@localhost nginx-1.6.3]# netstat -lntp
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      13989/nginx: master

4.2 viewing versions and modules

[root@localhost nginx-1.6.3]# /usr/local/nginx/sbin/nginx -V 
nginx version: nginx/1.6.3
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) 
configure arguments: --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module
[root@localhost nginx-1.6.3]# echo "nginx1.6" > /usr/local/nginx/html/index.html
[root@localhost nginx-1.6.3]# yum install -y elinks

4.3 access verification

[root@localhost nginx-1.6.3]# elinks 10.0.105.189

4.4 upgrade nginx

Upgrade the nginx version and add SSL and pcre modules without affecting the business

[root@localhost ~]# tar xzf nginx-1.12.2.tar.gz -C /usr/local/
[root@localhost ~]# cd /usr/local/nginx-1.12.2/
[root@localhost nginx-1.12.2]# ./configure --prefix=/usr/local/nginx --user=nginx --group=ngiinx --with-http_stub_status_module --with-http_ssl_module --with-pcre
[root@localhost nginx-1.12.2]# make
[root@localhost nginx-1.12.2]# cd
[root@localhost ~]# mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx_lod
[root@localhost ~]# cp /usr/local/nginx-1.12.2/objs/nginx /usr/local/nginx/sbin/
[root@localhost ~]# mv /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf.bak
[root@localhost ~]# kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
[root@localhost ~]# ls /usr/local/nginx/logs/
access.log  error.log  nginx.pid
[root@localhost ~]# ps aux | grep nginx 
root      13989  0.0  0.0  24860   952 ?        Ss   13:55   0:00 nginx: master process /usr/local/nginx/sbin/nginx
nginx     13990  0.0  0.1  25284  1720 ?        S    13:55   0:00 nginx: worker process
root      16525  0.0  0.0 112708   976 pts/2    S+   14:09   0:00 grep --color=auto nginx

4.5 verify whether nginx is upgraded successfully

4.6 nginx error page configuration

The nginx error page includes 404 403 500 502 503 504 and other pages. You only need to add the following configuration in the server:

#error_page  404 403 500 502 503 504  /404.html;
                location = /404.html {
                        root   /usr/local/nginx/html;
                }

be careful:

/The path usr/local/nginx/html / must have 404 HTML this file!!!

404.html, if you reference png or css of other files, there will be a problem and it will not be displayed, because the access of other files also needs to be configured; For simplicity, css can be embedded into the file, and the pictures can be embedded with base coding; As follows:

[root@localhost html]# vim 404.html
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
        <title>404</title>
        <style>
            .layout-table{display:table;height:100%;width:100%;vertical-align: middle;margin-top:150px}
            .layout-table-cell{display: table-cell;vertical-align: middle;text-align:center}
            .layout-tip{font-size:28px;color:#373737;margin: 0 auto;margin-top:16px;border-bottom: 1px solid #eee;padding-bottom: 20px;width: 360px;}
            #tips{font-size:18px;color:#666666;margin-top:16px;}
        </style>
    </head>
    <body class="layui-layout-body">
        <div class="layui-layout layui-layout-admin">
            
            <div class="layui-body">
                <div class="layout-table">
                    <div class="layout-table-cell">
                        <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAACMCAYAAAA0qsGKAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8x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zv8qx6uk8DvFzwtxV/x1LHaxPSPQ3SnKYYPXcj+N1pSZmYxFpT9uDMqcWCG3OYOZO83F+RWgB/TfIXwtsfDvR2ZnRN43jUd8xpg6/sMYhc6T9kz54WUx4gEhbcpSS4XylLmwDgrzH+Qnj7hSCw/OicWxp2mZkM4en+SNlkhei43ymbaPN6FtuA7SEGgfuch5sKbggvF+iCv0PK8YoGeHTUoB/JricKd41U1PLlQ0fu3LHh9phyqJgeRZN1J/ZgdhBb8LcL/g55cs1V411YEA4jI5vHNguoeHnokbLqhITqrQ7z+JB3LJuUtHvEYhsTAP52yF9UNQA2Qgjkio8uazrTbSajEQ50wBUhC+8HNAdgCdKa25D/9ql9Pe9FEtWY3tb0AsDVUejxAgAAAN0BVQ0AAAAQXgAAAAgvAAAAAOEFAABwF/8VYAAXRwSpGfHzmgAAAABJRU5ErkJggg==" class="layout-img">
                        <p class="layout-tip">Oh, I can't find the page!</p>
                        <p id="tips">Please check whether your network connection is normal or the URL you entered is correct</p>
                    </div>
                </div>
            </div>
        </div>
        
    </body>
</html>

Display effect;

Topics: Linux Operation & Maintenance Nginx