i-memcached ayifumani fayile yepid? I-CentOS 7 ikhankanya i-memcache pid

In CentOS 7 kufuneka iqwalaselwe kwi-memcached Monitha esweniXa kusenziwa inkqubo, ndiye ndadibana nengxaki yokuba i-memcached ayikwazanga kufumana ifayile yepid...

i-memcached ayifumani fayile yepid? I-CentOS 7 ikhankanya i-memcache pid

Lonke ulungelelwaniso esinokulufumana kukhangelo lukaGoogle luqulathe lo mgca:

check process memcached with pidfile /var/run/memcached/memcached.pid

kodwa,/var/run Akukho nanye memcached.pid Ifayile, no /var/run/memcached ifolda.

ijongiwe /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
  • Ngoko ke, akukho mendo kwifayile ye .pid.
  • Uyijonga njani i-memcached ngaphandle kwefayile ye-pid?
  • Kwakhona, ingaba le fayile ye.pid ingaba kwenye indawo?

Uyichaza njani idilesi yendawo yefayile ye-memcache kwi-CentOS 7?

Isisombululo kukutshintsha idilesi yefayile ye memcache pid oyikhankanye kuqwalaselo loqwalaselo lwe Monit▼

check process memcached with pidfile /var/run/memcached/memcached.pid

Faka enye endaweni yedilesi yefayile yale pid ilandelayo ye-memcached▼

check process memcached with match memcached

Uqwalaselo lwethu lwe-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

Ngendlela yofakelo ye-Centos 7 Monit esweni 5.14, nceda ubhekiselele kwisifundo esilandelayo▼

Ndiyathemba Chen Weiliang Blog ( https://www.chenweiliang.com/ ) kwabelwana "i-memcached ayikwazi ukufumana ifayile yepid?" I-CentOS 7 ichaza i-memcache pid", iya kukunceda.

Wamkelekile ukwabelana ngekhonkco leli nqaku:https://www.chenweiliang.com/cwl-26685.html

Wamkelekile kwisitishi seTelegram sebhlog kaChen Weiliang ukufumana uhlaziyo lwamva nje!

🔔 Yiba ngowokuqala ukufumana iSikhokelo sokuSetyenziswa kweSixhobo se-"ChatGPT yeNtengiso ye-AI" kuluhlu oluphezulu lwetshaneli! 🌟
📚 Esi sikhokelo sinexabiso elikhulu, 🌟Eli lithuba elinqabileyo, ungaliphoswa! ⏰⌛💨
Yabelana kwaye uthanda ukuba uyathanda!
Ukwabelana kwakho kunye nezinto ozithandayo ziyinkuthazo yethu eqhubekayo!

 

Shiya uluvo

Idilesi ye-imeyile ayizukupapashwa. Iinkalo ezifunekayo zisetyenzisiwe * Ileyibheli

skrolela phezulu