Error starting Memcached: could not listen

I ran Memcached on my server for 2 months. Yesterday he stopped working. I do not know why. So I tried:

root@xyz:~# killall memcached
root@xyz:~# /etc/init.d/memcached stop
Stopping memcached: memcached.
root@xyz:~# memcached -d -m 128 -l 127.0.0.1 -p 11211 -vv -u www-data
bind(): Address already in use
failed to listen
root@xyz:~# memcached -u www-data -vv
bind(): Address already in use
failed to listen

Any idea?

+3
source share
1 answer

Make sure memcached is not running.

ps auxw | grep memcached

If you find any process, kill it with kill -9(to make sure that it is REALLY killed):

kill -9 insert-your-PID-of-running-memcached-here

If you still cannot start memcached, see if there is anything else on port 11211:

netstat -A -n | grep 11211

In addition, these questions relate to Serverfault because it is not a programming issue.

+11
source

Source: https://habr.com/ru/post/1727215/


All Articles