在 CentOS 7 kinahanglan nga ma-configure para sa memcached Pagmonitor sa monitorKung nagprograma ko, nasugatan nako ang problema nga dili makit-an sa memcached ang pid file...

Ang tanan nga mga config nga among makit-an sa googling adunay kini nga linya:
check process memcached with pidfile /var/run/memcached/memcached.pid
apan,/var/run Wala sa memcached.pid file, ni /var/run/memcached folder.
gisusi /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
- Busa, walay dalan sa .pid file.
- Kung nagsusi sa memcached nga walay .pid file?
- Usab, mahimo ba kining .pid file sa laing lokasyon?
Giunsa pagtino sa CentOS 7 ang address sa lokasyon sa memcache pid file?
Ang solusyon mao ang pagtino sa memcache pid file address nga imong gipiho sa Monit monitoring configuration▼
check process memcached with pidfile /var/run/memcached/memcached.pid
Ilisan ug adres sa payl sa mosunod nga memcached pid▼
check process memcached with match memcached
Ang among configuration alang sa 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
Para sa pamaagi sa pag-install sa Centos 7 Monit monitoring 5.14, palihog tan-awa ang mosunod nga tutorial▼
Paglaum Chen Weiliang Blog ( https://www.chenweiliang.com/ ) mipakigbahin sa "memcached dili makit-an ang pid file? CentOS 7 Ipiho ang memcache pid" aron matabangan ka.
Welcome sa pagpaambit sa link niini nga artikulo:https://www.chenweiliang.com/cwl-26685.html
Aron maablihan ang daghang tinago nga mga limbong🔑, welcome sa pag-apil sa among Telegram channel!
Share ug like kung ganahan ka! Ang imong mga share ug likes mao ang among padayon nga kadasig!
