የ CWP7 Monit ክትትል ስህተቶችን መላ መፈለግ፡ የ nginx ግንኙነት በክትትል ውስጥ አልተሳካም

ባለፈው ጊዜ፣ ቼን ዌይሊያንግ የሞኒት የክትትል ሶፍትዌርን በ CWP የቁጥጥር ፓነል (CWP7) ውስጥ ሲጭን ፣ የMonit የክትትል ሂደት ሲጠፋ ችግሩን ፈትቷል (monit.service አልተሳካም)።
አሁን አዲስ ችግር ገጥሞኛል - ሞኒት የ Nginx ግንኙነትን መከታተል አልተሳካም...
በማኒት ውስጥ የ nginx ግንኙነትን እንዴት እንደሚፈታ?
የ nginx ግንኙነትን ለመፍታት ዘዴው በስህተት ችግር ውስጥ አልተሳካም-
በመጀመሪያ SSH በሚከተለው ትዕዛዝ ▼
ps -ef|grep nginxየ nginx ውቅር ፋይል ተገኝቷል፡-
[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 Connection ችግር በmonit አልተሳካም በመጨረሻ ተፈቷል!
በቼን ዌይሊያንግ ጦማር ( https://www.chenweiliang.com/ ) ላይ የተጋራው "የ nginx Connectionን መፍታት በmonit ስህተት አልተሳካም" የሚለው ጽሑፍ ለእርስዎ ጠቃሚ እንደሚሆን ተስፋ እናደርጋለን።
የዚህን ጽሑፍ ሊንክ ለማጋራት ነፃነት ይሰማዎ፦ https://www.chenweiliang.com/cwl-1423.html
