tags:

views:

542

answers:

2

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?

A: 

try

netstat -ap | grep TheChosenPort

and see if anything is listening on those tcp or udp ports.

Sean A.O. Harney
A: 

If you're asking this question, it sounds like you're running a really old version. If you did this on a recent version, you'd see this:

% ./memcached
failed to listen on TCP port 11211: Address already in use
Dustin