CWP7 മോണിറ്റ് മോണിറ്ററിംഗ് പിശകുകളുടെ ട്രബിൾഷൂട്ടിംഗ്: nginx കണക്ഷൻ നിരീക്ഷണത്തിൽ പരാജയപ്പെട്ടു

കഴിഞ്ഞ തവണ, ചെൻ വെയ്ലിയാങ് CWP കൺട്രോൾ പാനലിൽ (CWP7) മോണിറ്റ് മോണിറ്ററിംഗ് സോഫ്റ്റ്വെയർ ഇൻസ്റ്റാൾ ചെയ്തപ്പോൾ , സ്റ്റാർട്ടപ്പിൽ മോണിറ്റ് മോണിറ്ററിംഗ് പ്രക്രിയ അപ്രത്യക്ഷമാകുന്ന പ്രശ്നം അദ്ദേഹം പരിഹരിച്ചു (monit.service പരാജയപ്പെട്ടു).
ഇപ്പോൾ എനിക്ക് ഒരു പുതിയ പ്രശ്നമുണ്ട് - മോണിറ്റ് മോണിറ്ററിംഗ് Nginx കണക്ഷൻ പരാജയപ്പെട്ടു...
മോണിറ്റിൽ nginx കണക്ഷൻ പരാജയപ്പെട്ടത് എങ്ങനെ പരിഹരിക്കാം?
മോണിറ്റ് പിശക് പ്രശ്നത്തിൽ nginx കണക്ഷൻ പരിഹരിക്കുന്നതിനുള്ള രീതി പരാജയപ്പെട്ടു:
ആദ്യം, ഇനിപ്പറയുന്ന കമാൻഡിലേക്ക് SSH ചെയ്യുക ▼
ps -ef|grep nginxnginx കോൺഫിഗറേഷൻ ഫയൽ കണ്ടെത്തി:
[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
nginx കോൺഫിഗറേഷൻ ഫയൽ തുറക്കുക :
/etc/nginx/nginx.conf
nginx.pid-ന്റെ പാത്ത് ലൊക്കേഷൻ കണ്ടെത്തി:
pid /var/run/nginx.pid;
മോണിറ്റ് മോണിറ്ററിംഗ് പ്രോഗ്രാമിന്റെ കോൺഫിഗറേഷൻ ഫയലിൽ, 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മോണിറ്റ് മോണിറ്ററിംഗ് പ്രോഗ്രാം പുനരാരംഭിക്കുക▼
systemctl restart monit.serviceമോണിറ്റ് മോണിറ്ററിംഗ് പ്രോഗ്രാം നില കാണുക▼
systemctl status monit.serviceഈ ഘട്ടത്തിൽ എത്തിയാൽ, പിശക് സന്ദേശം തുടർന്നും ദൃശ്യമാകും:nginx Connection failed in monit
മോണിറ്ററിംഗ് nginx കോൺഫിഗറേഷന്റെ പോർട്ട് നമ്പർ "8181" അല്ലെങ്കിൽ "80" ആയി പരിഷ്ക്കരിക്കാൻ ശ്രമിക്കുക:
if failed port 8181 protocol http then restart if failed port 80 protocol http then restart
തുടർന്ന്, മോണിറ്റ് മോണിറ്ററിംഗ് പ്രോഗ്രാം പുനരാരംഭിക്കുക▼
systemctl restart monit.serviceമോണിറ്റ് മോണിറ്ററിംഗ് പ്രോഗ്രാം നില കാണുക▼
systemctl status monit.serviceമോണിറ്റിൽ nginx കണക്ഷൻ പരാജയപ്പെട്ടതിന്റെ പ്രശ്നം ഒടുവിൽ പരിഹരിച്ചു!
ചെൻ വെയ്ലിയാങ്ങിന്റെ ബ്ലോഗിൽ ( https://www.chenweiliang.com/ ) പങ്കിട്ട "Solving the nginx Connection failed in monit error" എന്ന ലേഖനം നിങ്ങൾക്ക് സഹായകരമാകുമെന്ന് പ്രതീക്ഷിക്കുന്നു.
ഈ ലേഖനത്തിന്റെ ലിങ്ക് പങ്കിടാൻ മടിക്കേണ്ടതില്ല: https://www.chenweiliang.com/cwl-1423.html
