Just follow the above blog post. Turn off the firewall and allow local access to [root@localhost ~]# systemctl stop firewalld SemaphoreView the semaphore: [root@localhost ~]# kill -l 1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE 9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2 13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGSTKFLT 17) SIGCHLD 18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN 22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO 30) SIGPWR 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1 36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 39) SIGRTMIN+5 40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 43) SIGRTMIN+9 44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13 48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13 52) SIGRTMAX-12 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9 56) SIGRTMAX-8 57) SIGRTMAX-7 58) SIGRTMAX-6 59) SIGRTMAX-5 60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 63) SIGRTMAX-1 64) SIGRTMAX There are
Nginx hot deployment The default is And the Now let's demonstrate how [root@localhost ~]# cd /usr/local/nginx/conf/ [root@localhost conf]# ll Total dosage 68 -rw-r--r--. 1 root root 1077 December 20 20:24 fastcgi.conf -rw-r--r--. 1 root root 1077 December 20 20:24 fastcgi.conf.default -rw-r--r--. 1 root root 1007 Dec 20 20:24 fastcgi_params -rw-r--r--. 1 root root 1007 December 20 20:24 fastcgi_params.default -rw-r--r--. 1 root root 2837 December 20 20:24 koi-utf -rw-r--r--. 1 root root 2223 December 20 20:24 koi-win -rw-r--r--. 1 root root 5231 December 20 20:24 mime.types -rw-r--r--. 1 root root 5231 December 20 20:24 mime.types.default -rw-r--r--. 1 root root 2656 December 20 21:26 nginx.conf -rw-r--r--. 1 root root 2656 December 20 20:24 nginx.conf.default -rw-r--r--. 1 root root 636 Dec 20 20:24 scgi_params -rw-r--r--. 1 root root 636 Dec 20 20:24 scgi_params.default -rw-r--r--. 1 root root 664 Dec 20 20:24 uwsgi_params -rw-r--r--. 1 root root 664 Dec 20 20:24 uwsgi_params.default -rw-r--r--. 1 root root 3610 December 20 20:24 win-utf [root@localhost conf]# cp nginx.conf nginx_old.conf [root@localhost conf]# vim nginx.conf Since View the [root@localhost conf]# ps -ef | grep nginx root 14964 1 0 22:25 ? 00:00:00 nginx: master process ./nginx nobody 14965 14964 0 22:25 ? 00:00:00 nginx: worker process root 15016 1521 0 23:07 pts/0 00:00:00 grep --color=auto nginx Send a [root@localhost conf]# kill -s SIGUSR2 14964 [root@localhost conf]# ps -ef | grep nginx root 14964 1 0 22:25 ? 00:00:00 nginx: master process ./nginx nobody 14965 14964 0 22:25 ? 00:00:00 nginx: worker process root 15019 14964 0 23:18 ? 00:00:00 nginx: master process ./nginx nobody 15020 15019 0 23:18 ? 00:00:00 nginx: worker process root 15022 1521 0 23:19 pts/0 00:00:00 grep --color=auto nginx And [root@localhost conf]# ll ../logs Total dosage 16 -rw-r--r--. 1 root root 2729 12月20 23:20 access.log -rw-r--r--. 1 root root 708 12月20 23:18 error.log -rw-r--r--. 1 root root 6 Dec 20 23:18 nginx.pid -rw-r--r--. 1 root root 6 Dec 20 22:25 nginx.pid.oldbin [root@localhost conf]# cat ../logs/nginx.pid 15019 [root@localhost conf]# cat ../logs/nginx.pid.oldbin 14964 Send a [root@localhost conf]# kill -s SIGWINCH 14964 [root@localhost conf]# ps -ef | grep nginx root 14964 1 0 22:25 ? 00:00:00 nginx: master process ./nginx root 15019 14964 0 23:18 ? 00:00:00 nginx: master process ./nginx nobody 15020 15019 0 23:18 ? 00:00:00 nginx: worker process root 15030 1521 0 23:27 pts/0 00:00:00 grep --color=auto nginx Now visit And visiting If there is no problem with the upgraded version, you can send a [root@localhost conf]# kill -s SIGQUIT 14964 [root@localhost conf]# ps -ef | grep nginx root 15019 1 0 23:18 ? 00:00:00 nginx: master process ./nginx nobody 15020 15019 0 23:18 ? 00:00:00 nginx: worker process root 15034 1521 0 23:31 pts/0 00:00:00 grep --color=auto nginx If there is a problem with the upgraded version and you need to roll back to the previous version, you can send a [root@localhost conf]# kill -s SIGHUP 15084 [root@localhost conf]# ps -ef | grep nginx root 15084 1 0 December 20 ? 00:00:00 nginx: master process ./nginx root 15106 15084 0 12月20 ? 00:00:00 nginx: master process ./nginx nobody 15107 15106 0 12月20 ? 00:00:00 nginx: worker process nobody 15131 15084 0 00:02 ? 00:00:00 nginx: worker process root 15141 1521 0 00:09 pts/0 00:00:00 grep --color=auto nginx Send a [root@localhost conf]# kill -s SIGQUIT 15106 [root@localhost conf]# ps -ef | grep nginx root 15084 1 0 December 20 ? 00:00:00 nginx: master process ./nginx nobody 15131 15084 0 00:02 ? 00:00:00 nginx: worker process root 15159 1521 0 00:25 pts/0 00:00:00 grep --color=auto nginx Rollback successful. You also need to roll back the version (that is, roll back the configuration file here, otherwise there will be problems when you restart next time). [root@localhost conf]# cp -f nginx_old.conf nginx.conf cp: Overwrite "nginx.conf"? y Why does the
If there is no new process (only a set of [root@localhost conf]# kill -s SIGHUP 15084 Obviously the configuration file has been reloaded. Since the blogger has not read the source code, he can only guess the implementation of This is the end of this article about the implementation of Nginx hot deployment. For more relevant Nginx hot deployment content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: HTML uses form tags to implement the registration page example code
>>: A brief discussion on the solution to the problem of native page compatibility with IE9
The google.html interface is as shown in the figur...
Table of contents 1. Overview 1.1 Creating a func...
I recently upgraded MySQL to 5.7, and WordPress r...
Table of contents 1. The role of nginx process lo...
HTML consists of two parts: head and body ** The ...
Copy code The code is as follows: <head> &l...
Previously, react.forwardRef could not be applied...
mysql row to column, column to row The sentence i...
String extraction without delimiters Question Req...
Introduction The mysql-utilities toolset is a col...
for loop The for loop loops through the elements ...
New features in MySQL 8.0 include: Full out-of-th...
Table of contents Preface 1. Uninstall MySQL 2. I...
Use the following terminal command to install the...
This article shares the specific code of the WeCh...