ubuntu14.04 : Bind address already in use 中的 redis 服务器

标签 redis server port in-memory-database

我在 ubuntu 上通过在终端上输入以下命令启动了 redis 服务器:$redis-server

结果如下 > 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

我该如何解决这个问题,是否有任何手动或自动过程来修复此绑定(bind)。

最佳答案

$ ps aux | grep redis

找到它运行的端口..在我的例子中..

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 : Bind address already in use 中的 redis 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32947076/

相关文章:

json - Ubuntu 16.04 Redis Json解析错误

python - 为什么 Celery 对 Redis 代理使用轮询?

javascript - 如何编写服务器端 node.js/express 方法?

javascript - Oracle Weblogic - 如何在不构建整个解决方案的情况下处理 UI?

java - 检查 Selenium Hub/Node 是否在给定端口上运行

javascript - 如何在专用服务器上配置我的 Node.js 应用程序以使其上线?

java - 我应该使用什么端口号

python - 解析 Redis MONITOR 消息

laravel - 为什么MaxAttemptsExceededException

http - 如何拦截错误的http HEAD请求