2014-01-28 3 views
2

OS X 컴퓨터에 500 MB rdb 파일을 생성 했으므로 Redis 서버가 제대로 작동합니다. 그러나 우분투 서버에이 시작 한 후 몇 초 만에 살해 :Redis 서버가 시작되었지만 잠시 후에 종료되었습니다.

$ 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 
+0

이러한 도움이 필요합니까? https://groups.google.com/forum/#!topic/redis-db/2n_9k4qoUJ8 & https://groups.google.com/forum/#!topic/redis-db/3PFjBriTyZw – Agis

+0

@Agis "Redding을로드 중입니다. 데이터 세트를 메모리에 로딩 "- 큰'.rdb' 파일을로드 할 때 보통 메시지입니다. 괜찮아. 이상한 점은 "Connection refused"라는 메시지가 나타납니다. –

+0

메시지에서'(error)'부분을 보셨습니까? – Agis

답변

6

두 시스템에서 동일한 Redis 버전을 실행하는지 확인하십시오.

다른 Redis 버전을 사용하여 문제가 발생했습니다. OS X에서는 2.8이었고 우분투 서버에서는 2.6이었습니다. 우분투 서버에 Redis 2.8을 설치하고 나면 .rdb 파일이 잘 시작되었습니다.

0

비슷한 문제가 발생하여 내 dump.rdb가 손상된 것으로 보입니다. Redis에 현재로드 된 데이터가 마음에 들지 않으면 /var/lib/redis/dump.rdb를 제거하고 redis-server를 다시 시작하면됩니다.

관련 문제