cannot store values into memcache

前端 未结 2 931
南方客
南方客 2020-12-11 08:06

I am running apache+php+memcache on suse 10.1.

I can connect Ok to memcached on port 11211, but I cannot do getVersion, add, get, etc.

Error message:

相关标签:
2条回答
  • 2020-12-11 08:38

    You may be running memcached without ASCII protocol support, such as if you ran:

    $ memcached -B binary

    If this is the case, remove the -B argument entirely, and PHP and telnet should work.

    It is also possible that your memcached was compiled with SASL support enabled, which disabled the ASCII protocol that PHP requires to connect to memcached.

    This would explain why it is running, but you cannot issue ASCII commands through telnet (or PHP).

    You could test this by running:

    $ memcached -S

    You should see this output if memcached wasn't compiled with SASL: "This server is not built with SASL support."

    0 讨论(0)
  • 2020-12-11 09:00

    Try with 127.0.0.1. Make sure your firewall allows connecting to port 11211. Make sure your Memcached server is up and running on port 11211.

    0 讨论(0)
提交回复
热议问题