memcached pa ka jwenn dosye pid? CentOS 7 presize memcache pid

CentOS 7 bezwen konfigirasyon pou memcached Monit siveyansLè mwen pwograme, mwen rankontre pwoblèm nan ke memcached pa ka jwenn dosye a pid ...

memcached pa ka jwenn dosye pid? CentOS 7 presize memcache pid

Tout konfigirasyon nou ka jwenn nan google genyen liy sa a:

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

men,/var/run Okenn nan memcached.pid dosye, ni /var/run/memcached katab.

tcheke /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
  • Se poutèt sa, pa gen okenn chemen nan dosye a .pid.
  • Si tcheke memcached san yon fichye .pid?
  • Epitou, èske dosye .pid sa a ka nan yon lòt kote?

Ki jan CentOS 7 presize adrès kote dosye memcache pid la?

Solisyon an se mete adrès dosye memcache pid ou espesifye nan konfigirasyon siveyans Monit ▼

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

Ranplase ak adrès dosye memcached pid sa a▼

check process memcached with match memcached

Konfigirasyon nou an pou 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

Pou metòd enstalasyon Centos 7 Monit monitoring 5.14, tanpri al gade leson patikilye sa a▼

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) pataje "memcached pa ka jwenn fichye pid la? CentOS 7 Espesifye memcache pid" pou ede w.

Byenvini pataje lyen atik sa a:https://www.chenweiliang.com/cwl-26685.html

Byenveni nan chanèl Telegram blog Chen Weiliang a pou jwenn dènye mizajou yo!

🔔 Se pou premye moun ki jwenn bonjan "ChatGPT Content Maketing AI Itilizasyon Zouti Gid" nan anyè chanèl ki pi wo a! 🌟
📚 Gid sa a gen anpil valè, 🌟Sa a se yon opòtinite ki ra, pa rate li! ⏰⌛💨
Pataje epi like siw renmen!
Pataje w ak renmen ou se motivasyon kontinyèl nou!

 

kòmantè

Adrès imèl ou pa pral pibliye. Jaden obligatwa yo te itilize * Mete etikèt sou

woule nan tèt