Ang memcached dili makit-an ang pid file? Gitino sa CentOS 7 ang memcache pid

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 memcached dili makit-an ang pid file? Gitino sa CentOS 7 ang memcache pid

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▼

发表 评论

Ang imong email address dili mamantala. Gigamit ang mga kinahanglanon nga uma * Label

Linukot nga basahon sa Taas