Troubleshooting memcached is not so transparent as some other technologies, but testing memcached using telnet commands can give us quite some insight on what’s happening under the hood.
Following is a short list of useful commands to inspect a running memcached instance.
How to find the IP address and port to connect:
ps aux | grep memcached will give us the process running memcached, with listening ip address and port. If this command does not yield any results, you likely not running the daemon and need to start it up first.
We can now connect using this info:
telnet 127.0.0.1 11211 (replace your IP address and port)
Supported Commands:
The following is a list of the most important memcached commands. For a more complete list of supported commands, check out the memcached wiki document. Read more »