karekau e kitea e te memcached te konae pid? CentOS 7 whakapūtā memcache pid

CentOS 7 me whirihora mo te memcached Te aro turukiI te wa e hotaka ana ahau, ka raru ahau kaore e kitea e te memcached te konae pid...

karekau e kitea e te memcached te konae pid? CentOS 7 whakapūtā memcache pid

Ko nga whirihora katoa ka kitea e matou i roto i te googling kei roto tenei rarangi:

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

engari,/var/run Kaore i roto memcached.pid kōnae, kaore /var/run/memcached kōpaki.

kua takina /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
  • Na reira, karekau he huarahi ki te konae .pid.
  • Mena ka tirohia te memcached kaore he konae .pid?
  • Ano, ka taea ranei tenei konae .pid ki tetahi atu waahi?

Me pehea te tohu a CentOS 7 i te waahi waahi o te konae pid memcache?

Ko te otinga ko te tautuhi i te wahitau kōnae memcache pid i tohua e koe ki te whirihoranga aroturuki Monit▼

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

Whakakapihia ki te wahitau kōnae o te pid memcached e whai ake nei

check process memcached with match memcached

To tatou whirihoranga mo 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

Mo te tikanga whakaurunga o Centos 7 Monit aroturuki 5.14, tirohia te akoranga e whai ake nei▼

发表 评论

Ka kore e whakaputaina to wahitau imeera. 必填 项 已 用 * Tapanga

Panuku ki te Runga