尝试运行redis服务器时出错

时间:2018-03-06 22:40:31

标签: ruby-on-rails redis

我尝试运行命令redis server并收到以下错误消息:

30260:C 06 Mar 19:19:52.861 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
30260:M 06 Mar 19:19:52.862 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
30260:M 06 Mar 19:19:52.862 # Server can't set maximum open files to 10032 because of OS error: Operation not permitted.
30260:M 06 Mar 19:19:52.862 # 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'.
30260:M 06 Mar 19:19:52.862 # Creating Server TCP listening socket *:6379: bind: Address already in use

之前我已经为redis创建了一个用户,因为我在另一个Rails应用程序中使用它,现在我正在创建一个也将使用此工具的新项目。

所以,当我运行ps aux | grep redis

fillype   5274  0.0  0.0  14244  1024 pts/2    S+   19:36   0:00 grep --color redis
redis    29157  0.0  0.1  40292 11120 ?        Ssl  19:16   0:01 /usr/bin/redis-server 127.0.0.1:6379

我知道这个问题与redis-server in ubuntu14.04: Bind address already in use相同,但他们的解决方案对我不起作用,就是杀死这个过程。

0 个答案:

没有答案