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

Viewed 86214

I am having some problems with memcached and one idea I am having is that perhaps it is already running on the port I am trying to run it on, started by some other user on our network. Is there a way to tell what memcached ports are currently in use?

6 Answers

You can check memcached status

service memcached status

You will see a line like this at the bottom:

       └─1560 /usr/bin/memcached -vv -m 64 -p 11211 -u memcache -l 127.0.0.1 -P /var/run/memcached/memcached.pid

The -p 11211 is what port it's running on.

Related