Ninu CentOS 7 nilo lati tunto fun memcached Monit monitoringNigbati mo ba ṣe eto, Mo pade iṣoro ti memcached ko le wa faili pid…
Gbogbo awọn atunto ti a le rii ni googling ni laini yii ni:
check process memcached with pidfile /var/run/memcached/memcached.pid
ṣugbọn,/var/run
Ko si ninu memcached.pid
faili, tabi /var/run/memcached
folda.
ẹnikeji /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
- Nitorina, ko si ọna si faili .pid.
- Ti o ba ṣayẹwo memcached laisi faili .pid bi?
- Bakannaa, le yi .pid faili wa ni ipo miiran?
Bawo ni CentOS 7 ṣe pato adirẹsi ipo ti faili memcache pid?
Ojutu ni lati pato awọn memcache pid adirẹsi faili ti o pato ninu Monit iṣeto ni monitoring▼
check process memcached with pidfile /var/run/memcached/memcached.pid
Rọpo pẹlu adirẹsi faili ti pid memcached atẹle
check process memcached with match memcached
Iṣeto wa fun 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
Fun ọna fifi sori ẹrọ ti ibojuwo Centos 7 Monit 5.14, jọwọ tọka si ikẹkọ atẹle ▼
Ireti Chen Weiliang Blog ( https://www.chenweiliang.com/ ) pín "memcached ko le ri faili pid bi? CentOS 7 Pato memcache pid" lati ṣe iranlọwọ fun ọ.
Kaabo lati pin ọna asopọ ti nkan yii:https://www.chenweiliang.com/cwl-26685.html
Kaabọ si ikanni Telegram ti bulọọgi Chen Weiliang lati gba awọn imudojuiwọn tuntun!
📚 Itọsọna yii ni iye nla, 🌟Eyi jẹ aye to ṣọwọn, maṣe padanu rẹ! ⏰⌛💨
Pin ati fẹran ti o ba fẹ!
Pinpin rẹ ati awọn ayanfẹ jẹ iwuri wa lemọlemọfún!