Redis服务器启动,但一秒就死了

标签 redis ubuntu-server

我在 OS X 机器上创建了 500 MB 的 rdb 文件,Redis 服务器在那里工作正常。但是在 Ubuntu 服务器上,它在启动后几秒钟内就被杀死了:

$ src/redis-server configFile_6381.conf

[1004] 30 Jan 15:50:27.591 * Max number of open files set to 10032
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 2.6.17 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                   
 (    '      ,       .-`  | `,    )     Running in stand alone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6381
 |    `-._   `._    /     _.-'    |     PID: 1004
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           http://redis.io        
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

[1004] 30 Jan 15:50:27.593 # Server started, Redis version 2.6.17
Killed

配置文件(configFile_6381.conf):

daemonize yes
pidfile /var/run/redisVgo.pid
port 6381
timeout 0
tcp-keepalive 0
loglevel verbose
logfile /root/Dropbox/redis/_projects/vgo/vgo.log
databases 16
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename vgo6381.rdb
dir ./
slave-serve-stale-data yes
slave-read-only yes
repl-disable-tcp-nodelay no
slave-priority 100
appendonly no
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-len 128
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-entries 512
list-max-ziplist-value 64
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes

有时在终止之前我会在客户端输出中看到消息:

   (error) LOADING Redis is loading the dataset in memory

最佳答案

检查您是否在两个系统上运行相同的 Redis 版本。

我使用了不同的 Redis 版本,这引起了麻烦。在 OS X 上是 2.8,在 Ubuntu Server 上是 2.6。在 Ubuntu 服务器上设置 Redis 2.8 后,我的 .rdb 文件在那里启动良好。

关于Redis服务器启动,但一秒就死了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21406705/

相关文章:

php - Curl 未正确安装(调用未定义的函数 curl_init())

mysql - Linux:每天在特定的、不同的预定时间安排命令

Linux - 没有硬件声卡,捕获音频播放,并将其记录到文件

redis - 如何结束Redis监控

amazon-web-services - 是否可以删除 AWS ElastiCache redis 集群上的所有键?

ruby-on-rails - 使用 memcached 或 redis 的 Rails cache_store 不会产生性能提升

java - 在基于 Windows 的 VPS 中从 Java Access Ubuntu 服务器中托管的 MS Access?

将 PHP 7 安装到我的服务器后,PHP 模块不加载

json - Ubuntu 16.04 Redis Json解析错误

nginx - 如何从 Redis 获取值并将其放入 NGiNX 的变量中?