KW CentOS 7 idinga ukulungiswa ukuze i-memcached Bheka ukuqaphaUma ngihlela, ngihlangabezana nenkinga yokuthi i-memcached ayikwazi ukuthola ifayela le-pid...
Zonke izilungiselelo esingazithola ku-googling ziqukethe lo mugqa:
check process memcached with pidfile /var/run/memcached/memcached.pid
kodwa,/var/run
Akukho phakathi memcached.pid
ifayela, noma /var/run/memcached
ifolda.
kuhloliwe /usr/lib/systemd/system/memcached.service
[Service] Type=simple EnvironmentFile=-/etc/sysconfig/memcached ExecStart=/usr/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS
- Ngakho-ke, ayikho indlela eya kufayela le-.pid.
- Uma ubheka i-memcached ngaphandle kwefayela le-.pid?
- Futhi, ingabe leli fayela le-.pid lingaba kwenye indawo?
I-CentOS 7 ilicacisa kanjani ikheli lendawo yefayela le-memcache pid?
Isixazululo ukucacisa ikheli lefayela le-memcache pid olicacisile ekucushweni kokuqapha kwe-Monit▼
check process memcached with pidfile /var/run/memcached/memcached.pid
Faka esikhundleni sekheli lefayela le-memcached pid elandelayo▼
check process memcached with match memcached
Ukucushwa kwethu kwe-memcached:
check process memcached with match memcached start program = "/usr/bin/systemctl start memcached" stop program = "/usr/bin/systemctl stop memcached" if failed host 127.0.0.1 port 11211 protocol MEMCACHE then restart if cpu > 70% for 2 cycles then alert if cpu > 98% for 5 cycles then restart if 2 restarts within 3 cycles then timeout
Ukuze uthole indlela yokufaka i-Centos 7 Monit monitoring 5.14, sicela ubheke isifundo esilandelayo▼
I-Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) kwabiwe "i-memcached ayikwazi ukuthola ifayela le-pid? I-CentOS 7 Cacisa i-memcache pid" ukukusiza.
Siyakwamukela ukwabelana ngesixhumanisi salesi sihloko:https://www.chenweiliang.com/cwl-26685.html
Uyemukelwa esiteshini seTelegram sebhulogi ka-Chen Weiliang ukuze uthole izibuyekezo zakamuva!
📚 Lo mhlahlandlela uqukethe inani elikhulu, 🌟Leli ithuba eliyivelakancane, ungaphuthelwa! ⏰⌛💨
Yabelana futhi uthanda uma uthanda!
Ukwabelana kwakho nokuthanda kwakho kuyisisusa sethu esiqhubekayo!