Depanaj erè siveyans CWP7 Monit : Koneksyon nginx echwe nan siveyans

Dènye fwa a, lè Chen Weiliang te enstale lojisyèl siveyans Monit la nan panèl kontwòl CWP a (CWP7) , li te rezoud pwoblèm pwosesis siveyans Monit la ki te disparèt lè sistèm nan demarre (monit.service te echwe).
Koulye a, mwen gen yon nouvo pwoblèm - Monit siveyans koneksyon Nginx echwe ...
Ki jan yo rezoud koneksyon nginx echwe nan monit?
Metòd pou rezoud Koneksyon nginx echwe nan pwoblèm erè monitè:
Premyèman, SSH nan lòd sa a ▼
ps -ef|grep nginxJwenn dosye konfigirasyon nginx la:
[root@ten ~]# ps -ef|grep nginx root 11550 1 0 02:12 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf nobody 11551 11550 0 02:12 ? 00:00:04 nginx: worker process nobody 11552 11550 0 02:12 ? 00:00:08 nginx: worker process nobody 11553 11550 0 02:12 ? 00:00:02 nginx: worker process nobody 11554 11550 0 02:12 ? 00:00:01 nginx: worker process nobody 11555 11550 0 02:12 ? 00:00:00 nginx: cache manager process root 19827 9820 0 02:37 pts/0 00:00:00 grep --color=auto nginx
Louvri fichye konfigirasyon nginx la :
/etc/nginx/nginx.conf
Jwenn kote chemen nginx.pid:
pid /var/run/nginx.pid;
Nan dosye konfigirasyon pwogram siveyans Monit la, antre konfigirasyon sa a pou kontwole nginx▼
check process nginx with pidfile /var/run/nginx.pid
start program "/usr/bin/systemctl start nginx.service"
stop program "/usr/bin/systemctl stop nginx.service"
if failed port 8181 protocol http then restart
if 4 restarts within 8 cycles then timeoutif 4 restarts within 8 cycles then timeoutRekòmanse pwogram siveyans Monit la▼
systemctl restart monit.serviceGade estati pwogram siveyans Monit▼
systemctl status monit.serviceSi yo rive nan etap sa a, mesaj erè a toujou parèt:nginx Connection failed in monit
Tanpri eseye modifye nimewo pò a nan konfigirasyon nginx siveyans nan "8181" oswa "80":
if failed port 8181 protocol http then restart if failed port 80 protocol http then restart
Apre sa, rekòmanse pwogram siveyans Monit la ▼
systemctl restart monit.serviceGade estati pwogram siveyans Monit▼
systemctl status monit.servicePwoblèm nan Koneksyon nginx echwe nan monit finalman rezoud!
Espere ke atik "Rezoud pwoblèm koneksyon nginx la echwe nan erè monit" ki pataje sou blog Chen Weiliang la ( https://www.chenweiliang.com/ ) ap itil ou.
Pa ezite pataje lyen atik sa a: https://www.chenweiliang.com/cwl-1423.html
