开发者

Error when starting Memcached: failed to listen [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_开发知识库 Closed 9 years ago.

I have run Memcached on my Server for 2 month. Yesterday it stopped working. No idea 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?


Make sure that memcached is not running.

ps auxw | grep memcached

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

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

If you still can't start memcached, look if there's anything else listening on port 11211:

netstat -A -n | grep 11211

Also, this questions belongs to Serverfault, because it's not a programming question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜