CWP7 rezoud pwoblèm nan nan Koneksyon nginx echwe nan monitè erè

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

CWP7 rezoud pwoblèm nan nan Koneksyon nginx echwe nan monitè erè

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 nginx

Jwenn 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 timeout

Rekòmanse pwogram siveyans Monit la▼

systemctl restart monit.service

Gade estati pwogram siveyans Monit▼

systemctl status monit.service

Si 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.service

Gade estati pwogram siveyans Monit▼

systemctl status monit.service

Pwoblèm nan Koneksyon nginx echwe nan monit finalman rezoud!

kòmantè

您的邮箱地址不会被公开。必填项已用*标注

Ki gen tèt