Whakaoti i nga tūmau memcached kaore i te whakautu, kaore ranei e rere

whai akorangapaetukutuku WordPresstauhou i rotoWordPress backendKua whakauruhia te mono W3 Total Cache, engari ko Memcached kaore i te aro, kare e mahi pera me te panui e whai ake nei:

Ko nga tūmau memcached e whai ake nei kaore i te whakautu, kaore ranei e mahi:
Keteroki Raraunga Raraunga: 127.0.0.1:11211.
Keteroki Ahanoa: 127.0.0.1:11211.
Keteroki Whārangi: 127.0.0.1:11211.
Ka ngaro aunoa tenei karere ina oti te take

Ma te whakahaere i te whakahau "systemctl restart memcached"I te whakaara ano i te ratonga memcached, ka mutu te raru mo etahi wa, engari ka puta ano.

Kua oti te whakamatautau hototahi me te ahua he pai nga mea katoa:

Memcached extension: Installed
Memcache extension: Not Installed
Redis extension: Not Installed

Me aha ahau ki te whakaoti i te raru kaore e taea e te ratonga Memcached te whakahaere pera i mua?

Otinga XNUMX mo te ratonga Memcached kaore i te whakautu

Te ahua nei he take hono ki te ratonga Memcached.Na ko te raruraru ko te tūmau Memcached.

Tena koa tirohia mono WordPressTautuhinga me te whirihoranga Memcached.

Ko te karere i riro ia koe ko te hua o te raru ki te tūmau Memcached.

Mena ka pahemo te raru i muri i te tiimata ano i te ratonga Memcached, tera pea etahi take honohono ki te tūmau Memcached.

Tirohia te CLI/SSH Mahara  Ratonga▼

memcached-tool 127.0.0.1:11211 display 
memcached-tool 127.0.0.1:11211 stats
telnet 127.0.0.1 11211
  • Me korero ki te memcache me te whakautu ki nga whakahau mana.

Tirohia mehemea kei te whakahaere te ratonga ▼

ps afux | grep memc

Ki te hiahiatia, whakaara ano i te ratonga memcache (hei pakiaka/sudo)▼

service memcached restart

Mena ka puta he karere hapa " ERROR Too many open connections"Koira te take i raru ai.

Ka tae koe ki te rohe hononga tuwhera Memcached, ka kore e taea e koe te penapena, te whakahoki mai ranei i nga waahi mai i tera wa, na te mea ka kore nga hononga tawhito e ngaro.

E rua nga whakatika ka taea:

  1. Monokia te hononga tohe i roto i te kōwae mono W3 Tapeke Keteroki (hei tauira: Mahinga → Keteroki Ahanoa → Arā Atu Anō)
    Whakaoti i nga tūmau memcached kaore i te whakautu, kaore ranei e rere
  2. Whakanuia te tepe hononga tuwhera i roto i te whirihoranga memcache, whakaritea nga hononga tuwhera morahi.

Otinga XNUMX mo te ratonga Memcached kaore e rere

mena ko toLinuxwhakamahi tūmauPaewhiri Mana CWPTuhinga o mua Whakawhiti putanga PHP, ka taea e koe te ngana ki te whakauru ano i te ratonga Memcached.

Patohia te taha maui o te paewhiri mana CWP → Tautuhinga PHP → Kaihuri Putanga PHP → tohua a ringa etahi atu putanga PHP 7, penei: PHP 7.4.28 putanga, ka tirohia te toronga Memcache me Memcached▼

Ko Chen WeiliangI whakauruhia e te blog te toronga Memcached i mua, a na te kore o te whakauru i te toronga Memcache i raru ai.

I muri i te whakauru i nga whakawhitinga Memcache me Memcached i te wa ano, ko te raruraru kaore i whakautuhia e te ratonga Memcached i tere te whakaoti!

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Ko te whakaoti i nga tūmau memcached kaore i te whakautu, kaore ranei e rere ana", he pai ki a koe.

Nau mai ki te tohatoha i te hono o tenei tuhinga:https://www.chenweiliang.com/cwl-28039.html

Nau mai ki te hongere Telegram o te blog a Chen Weiliang ki te tiki i nga korero hou!

🔔 Ko koe te tuatahi ki te tiki i te "ChatGPT Content Marketing AI Tool Usage Guide" i roto i te raarangi o runga hongere! 🌟
📚 He uara nui tenei aratohu, 🌟He waahi onge tenei, kaua e ngaro! ⏰⌛💨
Tohaina me te pai ki te pai koe!
Ko to tiritiri me o hiahia ko to maatau hihiri tonu!

 

发表 评论

Kaore e tukuna to wahitau imeera. 必填 项 已 用 * Tapanga

panuku ki runga