启动redis-server时出错

时间:2017-04-15 13:15:54

标签: redis

Redis服务器未启动。当我尝试启动时,我看到了这个错误:

    tony@kali:~$ redis-server
    3189:C 15 Apr 18:43:47.872 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
    3189:M 15 Apr 18:43:47.873 # You requested maxclients of 10000    requiring at least 10032 max file descriptors.
    3189:M 15 Apr 18:43:47.873 # Server can't set maximum open files to       10032 because of OS error: Operation not permitted.
    3189:M 15 Apr 18:43:47.873 # 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'.
    3189:M 15 Apr 18:43:47.873 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with 'noeviction' policy now.
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 3.2.6 (00000000/0) 32 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 3189
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

3189:M 15 Apr 18:43:47.874 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
3189:M 15 Apr 18:43:47.874 # Server started, Redis version 3.2.6
3189:M 15 Apr 18:43:47.874 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
3189:M 15 Apr 18:43:47.874 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
3189:M 15 Apr 18:43:47.874 * DB loaded from disk: 0.000 seconds
3189:M 15 Apr 18:43:47.874 * The server is now ready to accept connections on port 6379

0 个答案:

没有答案