CWP7 သည် Monit error တွင် nginx ချိတ်ဆက်မှု မအောင်မြင်သည့် ပြဿနာကို ဖြေရှင်းပေးသည်။

CWP7 ကို ဖြေရှင်းခြင်း။ စောင့်ကြည့်စောင့်ကြည့်အမှားပြဿနာ- nginx ချိတ်ဆက်မှု faimonit တွင် ဦးဆောင်ခဲ့သည်။

CWP7 သည် Monit error တွင် nginx ချိတ်ဆက်မှု မအောင်မြင်သည့် ပြဿနာကို ဖြေရှင်းပေးသည်။

上次Chen WeiliangInMonit စောင့်ကြည့်မှုကို ထည့်သွင်းရန် CWP Control Panel (CWP7)Software များMonit startup စောင့်ကြည့်ရေး လုပ်ငန်းစဉ် ပျောက်ဆုံးမှု monit.service ကို ဖြေရှင်း၍မရပါ။

ယခု ကျွန်ုပ်တွင် ပြဿနာအသစ်တစ်ခုရှိသည် - Monit Moniting Nginx ချိတ်ဆက်မှု မအောင်မြင်ပါ...

Monit တွင် nginx Connection ကျရှုံးခြင်းကို မည်သို့ဖြေရှင်းမည်နည်း။

Monit error ပြဿနာတွင် nginx Connection ကိုဖြေရှင်းရန်နည်းလမ်း မအောင်မြင်ပါ။

ပထမဦးစွာ၊ အောက်ပါ command တွင် SSH ▼

ps -ef|grep nginx

nginx configuration ဖိုင်ကို တွေ့သည်

[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;

Monit စောင့်ကြည့်ရေးပရိုဂရမ်၏ဖွဲ့စည်းပုံဖိုင်တွင် 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

Monit စောင့်ကြည့်ရေး အစီအစဉ်▼ ကို ပြန်လည်စတင်ပါ။

systemctl restart monit.service

Monit စောင့်ကြည့်ရေး အစီအစဉ် အခြေအနေ ▼ ကို ကြည့်ပါ။

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

ထို့နောက် Monit monitoring program▼ ကို ပြန်လည်စတင်ပါ။

systemctl restart monit.service

Monit စောင့်ကြည့်ရေး အစီအစဉ် အခြေအနေ ▼ ကို ကြည့်ပါ။

systemctl status monit.service

Monit တွင် nginx Connection ၏ပြဿနာသည်နောက်ဆုံးတွင်ဖြေရှင်းပြီးဖြစ်သည်။

မျှော်လင့်ခြင်း Chen Weiliang ဘလော့ဂ် ( https://www.chenweiliang.com/ ) မျှဝေထားသော "CWP7 သည် monit error တွင် nginx ချိတ်ဆက်မှု မအောင်မြင်သည်ကို ဖြေရှင်းပေးသည်" ဟူသည်မှာ သင့်အတွက် အထောက်အကူဖြစ်စေပါသည်။

ဤဆောင်းပါး၏ link ကိုမျှဝေရန်ကြိုဆိုပါတယ်:https://www.chenweiliang.com/cwl-1423.html

နောက်ဆုံးထွက်မွမ်းမံမှုများကို ရယူရန် Chen Weiliang ၏ တယ်လီဂရမ်ချန်နယ်မှ ကြိုဆိုပါသည်။

🔔 ချန်နယ်ထိပ်တန်းလမ်းညွှန်တွင် တန်ဖိုးရှိသော "ChatGPT အကြောင်းအရာစျေးကွက်ရှာဖွေရေး AI ကိရိယာအသုံးပြုမှုလမ်းညွှန်" ကို ပထမဆုံးရရှိသူဖြစ်လိုက်ပါ။ 🌟
📚 ဤလမ်းညွှန်တွင် တန်ဖိုးကြီးကြီးမားမားပါရှိသည်၊ 🌟ဒါက ရှားပါးအခွင့်အရေးပါ၊ လက်လွတ်မခံပါနဲ့။ ⏰⌛💨
ကြိုက်ရင် Share ပြီး Like လုပ်ပါ။
သင်၏မျှဝေခြင်းနှင့် လိုက်ခ်များသည် ကျွန်ုပ်တို့၏ စဉ်ဆက်မပြတ်လှုံ့ဆော်မှုဖြစ်သည်။

 

မှတ်ချက်များ

သင့်ရဲ့အီးမေးလ်လိပ်စာကိုထုတ်ဝေမည်မဟုတ် 用项已用用 * တံဆိပ်

အပေါ်မှလှိမ့်