How do I see if memcached is already running on my chosen port?

To see if it is running you could also try telnetting into the port:

telnet localhost 11211

If this works you will see the following (telling you that the given port is open):

Connected to localhost.
Escape character is '^]'.

Now if memcached IS running you can see some basic stats by issuing the given command:

stats

If this fails you will know that memcached is not running.

Leave a Comment