ubuntu14.04中的redis-server:绑定地址已在使用中 [英] redis-server in ubuntu14.04: Bind address already in use
本文介绍了ubuntu14.04中的redis-server:绑定地址已在使用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ubuntu上启动Redis服务器,方法是在终端机上输入$ redis-server
I started redis server on ubuntu by typing this on terminal: $redis-server
此结果导致>> http://paste.ubuntu.com/12688632/ >
This results in following > http://paste.ubuntu.com/12688632/
aruns ~ $ redis-server
27851:C 05 Oct 15:16:17.955 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
27851:M 05 Oct 15:16:17.957 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
27851:M 05 Oct 15:16:17.957 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
27851:M 05 Oct 15:16:17.958 # Current maximum open files is 4096. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
27851:M 05 Oct 15:16:17.958 # Creating Server TCP listening socket *:6379: bind: Address already in use
我该如何解决此问题,它有任何手动或自动过程可以解决此绑定问题.
How can I fix this problem, it there any manual or automated process to fix this binding.
推荐答案
$ ps aux | grep redis
找到运行端口..就我而言..
Find the port that its running on.. In my case..
MyUser 8821 0.0 0.0 2459704 596 ?? S 4:54PM 0:03.40 redis-server *:6379
然后手动关闭端口
$ kill -9 8821
重新运行Redis
$ redis-server
这篇关于ubuntu14.04中的redis-server:绑定地址已在使用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文