In CentOS 7 dia mila amboarina ho an'ny memcached Manara-masoRehefa manao programa aho dia sendra ny olana fa tsy afaka mahita ny rakitra pid ny memcached ...

Ny config rehetra hitanay amin'ny googling dia misy ity andalana ity:
check process memcached with pidfile /var/run/memcached/memcached.pid
fa,/var/run Tsy miditra memcached.pid rakitra, na /var/run/memcached lahatahiry.
avy amin'ny teny anglisy /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
- Noho izany, tsy misy lalana mankany amin'ny rakitra .pid.
- Raha mijery memcached tsy misy rakitra .pid?
- Ary koa, mety ho any amin'ny toerana hafa ve ity rakitra .pid ity?
Ahoana no amaritan'ny CentOS 7 ny adiresin'ny fisie memcache pid?
Ny vahaolana dia ny mamaritra ny adiresin'ny rakitra memcache pid nofaritanao tao amin'ny fikirakirana fanaraha-maso Monit▼
check process memcached with pidfile /var/run/memcached/memcached.pid
Soloy amin'ny adiresin'ny rakitra memcached pid▼ manaraka
check process memcached with match memcached
Ny fandrindrana anay ho an'ny memcach:
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
Ho an'ny fomba fametrahana Centos 7 Monit fanaraha-maso 5.14, azafady jereo ity lesona manaraka ity▼
Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) nizara "tsy mahita ny rakitra pid ny memcached? CentOS 7 mamaritra memcache pid" hanampy anao.
Tongasoa eto mizara ny rohy amin'ity lahatsoratra ity:https://www.chenweiliang.com/cwl-26685.html

