Folgen Sie einfach dem obigen Blogbeitrag. Schalten Sie die Firewall aus und erlauben Sie den lokalen Zugriff auf [root@localhost ~]# systemctl stoppe Firewall SemaphorSehen Sie sich das Semaphor an: [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 Es gibt
Nginx-Hot-Bereitstellung Der Standardwert ist Und der Lassen Sie uns nun demonstrieren, wie [root@localhost ~]# cd /usr/local/nginx/conf/ [root@localhost conf]# ll Gesamtdosis 68 -rw-r--r--. 1 root root 1077 20. Dezember 20:24 fastcgi.conf -rw-r--r--. 1 root root 1077 20. Dezember 20:24 fastcgi.conf.default -rw-r--r--. 1 root root 1007 Dez 20 20:24 fastcgi_params -rw-r--r--. 1 root root 1007 20. Dezember 20:24 fastcgi_params.default -rw-r--r--. 1 root root 2837 20. Dezember 20:24 koi-utf -rw-r--r--. 1 root root 2223 20. Dezember 20:24 koi-win -rw-r--r--. 1 root root 5231 20. Dezember 20:24 mime.types -rw-r--r--. 1 root root 5231 20. Dezember 20:24 mime.types.default -rw-r--r--. 1 root root 2656 20. Dezember 21:26 nginx.conf -rw-r--r--. 1 root root 2656 20. Dezember 20:24 nginx.conf.default -rw-r--r--. 1 root root 636 Dez 20 20:24 scgi_params -rw-r--r--. 1 root root 636 Dez 20 20:24 scgi_params.default -rw-r--r--. 1 root root 664 Dez 20 20:24 uwsgi_params -rw-r--r--. 1 root root 664 20. Dez. 20:24 uwsgi_params.default -rw-r--r--. 1 root root 3610 20. Dezember 20:24 win-utf [root@localhost conf]# cp nginx.conf nginx_old.conf [root@localhost conf]# vim nginx.conf Da Sehen Sie sich den [root@localhost conf]# ps -ef | grep nginx root 14964 1 0 22:25 ? 00:00:00 nginx: Masterprozess ./nginx niemand 14965 14964 0 22:25 ? 00:00:00 nginx: Arbeitsprozess root 15016 1521 0 23:07 pts/0 00:00:00 grep --color=auto nginx Senden Sie ein [root@localhost conf]# kill -s SIGUSR2 14964 [root@localhost conf]# ps -ef | grep nginx root 14964 1 0 22:25 ? 00:00:00 nginx: Masterprozess ./nginx niemand 14965 14964 0 22:25 ? 00:00:00 nginx: Arbeitsprozess root 15019 14964 0 23:18 ? 00:00:00 nginx: Master-Prozess ./nginx niemand 15020 15019 0 23:18 ? 00:00:00 nginx: Arbeitsprozess root 15022 1521 0 23:19 Punkte/0 00:00:00 grep --color=auto nginx Und [root@localhost conf]# ll ../logs Gesamtdosis 16 -rw-r--r--. 1 root root 2729 20. Dezember 23:20 access.log -rw-r--r--. 1 root root 708 20. Dezember 23:18 Fehler.log -rw-r--r--. 1 root root 6 Dez 20 23:18 nginx.pid -rw-r--r--. 1 root root 6 Dez 20 22:25 nginx.pid.oldbin [root@localhost conf]# cat ../logs/nginx.pid 15019 [root@localhost conf]# cat ../logs/nginx.pid.oldbin 14964 Senden Sie ein [root@localhost conf]# kill -s SIGWINCH 14964 [root@localhost conf]# ps -ef | grep nginx root 14964 1 0 22:25 ? 00:00:00 nginx: Masterprozess ./nginx root 15019 14964 0 23:18 ? 00:00:00 nginx: Master-Prozess ./nginx niemand 15020 15019 0 23:18 ? 00:00:00 nginx: Arbeitsprozess root 15030 1521 0 23:27 pts/0 00:00:00 grep --color=auto nginx Besuchen Sie jetzt Und wenn Sie Wenn mit der aktualisierten Version kein Problem vorliegt, können Sie ein [root@localhost conf]# kill -s SIGQUIT 14964 [root@localhost conf]# ps -ef | grep nginx root 15019 1 0 23:18 ? 00:00:00 nginx: Masterprozess ./nginx niemand 15020 15019 0 23:18 ? 00:00:00 nginx: Arbeitsprozess root 15034 1521 0 23:31 Punkte/0 00:00:00 grep --color=auto nginx Wenn ein Problem mit der aktualisierten Version vorliegt und Sie zur vorherigen Version zurückkehren müssen, können Sie ein [root@localhost conf]# kill -s SIGHUP 15084 [root@localhost conf]# ps -ef | grep nginx root 15084 1 0 20. Dezember ? 00:00:00 nginx: Masterprozess ./nginx root 15106 15084 0 20. Dezember ? 00:00:00 nginx: Masterprozess ./nginx niemand 15107 15106 0 20. Dezember ? 00:00:00 nginx: Arbeitsprozess niemand 15131 15084 0 00:02 ? 00:00:00 nginx: Arbeitsprozess root 15141 1521 0 00:09 Punkte/0 00:00:00 grep --color=auto nginx Senden Sie ein [root@localhost conf]# kill -s SIGQUIT 15106 [root@localhost conf]# ps -ef | grep nginx root 15084 1 0 20. Dezember ? 00:00:00 nginx: Masterprozess ./nginx niemand 15131 15084 0 00:02 ? 00:00:00 nginx: Arbeitsprozess root 15159 1521 0 00:25 Punkte/0 00:00:00 grep --color=auto nginx Rollback erfolgreich. Außerdem ist ein Versionsrücksetzen erforderlich (also hier ein Zurücksetzen der Konfigurationsdatei, da es sonst beim nächsten Neustart zu Problemen kommt). [root@localhost conf]# cp -f nginx_old.conf nginx.conf cp: „nginx.conf“ überschreiben? j Warum kann der vom alten
Wenn kein neuer Prozess vorhanden ist (nur eine Reihe von [root@localhost conf]# kill -s SIGHUP 15084 Offensichtlich wurde die Konfigurationsdatei neu geladen. Da der Blogger den Quellcode nicht gelesen hat, kann er die Implementierung von Dies ist das Ende dieses Artikels über die Implementierung von Nginx Hot Deployment. Weitere relevante Inhalte zu Nginx Hot Deployment finden Sie in früheren Artikeln auf 123WORDPRESS.COM oder in den folgenden verwandten Artikeln. Ich hoffe, dass jeder 123WORDPRESS.COM in Zukunft unterstützen wird! Das könnte Sie auch interessieren:
|
<<: Eine kurze Diskussion über die Lösung des Problems der nativen Seitenkompatibilität mit IE9
>>: Der Grund, warum MySQL den B+-Baum als zugrunde liegende Datenstruktur verwendet
1.MySQL-Funktionen 1. Mathematische Funktionen PI...
Die Homepage von Tencent QQ wurde neu gestaltet un...
Inhaltsverzeichnis 1. Filtern Sie eindeutige Wert...
Die folgende Grafik zeigt, wie zeitaufwändig es is...
1. Nginx-Dienstgrundlage Nginx (Engine x) wurde s...
Vorwort Um den Single Point of Failure zu beheben...
Wenn Sie einige Microsoft-Dokumente mit LibreOffi...
Haben Sie nach den letzten beiden Kapiteln ein ne...
Inhaltsverzeichnis Erstellen Sie eine Vuex-Umgebu...
Die Installation von Harbor ist ziemlich einfach,...
Inhaltsverzeichnis Definieren der HTML-Struktur E...
Beim letzten Mal haben wir uns zwei Header-Layout...
Was ist Inhaltsüberlauf? Wenn tatsächlich viel Te...
https://docs.microsoft.com/en-us/windows/wsl/wsl-...
Vorwort Wenn der Code ausgeführt wird und ein Feh...