開發環境:macbookpro 10.11.4,docker for mac 1.12.3,redis 3.2.6,鏡像來源為DAOCLOUD
打算搭建redis主從服務,自己設定redis.conf,但是把容器當中的運行redis-server /usr/local/bin/redis.conf無法生效,已通過redis-cli info驗證過了,並且如果是啟動時加上-d選項設定啟動參數指定設定檔時則容器無法啟動。
下面是containerlog
1:C 17 Dec 14:34:47.683 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 3.2.6 (00000000/0) 64 bit
.-`` .-". "\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 1
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
2016-12-17T14:34:47.685186833Z
1:M 17 Dec 14:34:47.685 # WARNING: The TCPprobacklog setting of 511 cannot be end perNING: The TCPprobacklog set value of 128.
1:M 17 Dec 14:34:47.685 # Server started, Redis version 3.2.6
1:M 17 Dec 14:34:47.685 # WARNING you have Transparour Hable Pages (Pugey) you Pages (Puge kerable you have 電話. 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, and order it to your /etc in local /et to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 17 Dec 14:34:47.689 * DB loaded from disk: 0.004 seconds
1:M 177. is now ready to accept connections on port 6379
redis.conf
protected-mode no
port 6379
tcp-backlog-mode no
port 6379
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize yes
supervised nologowpidfile /var/runpred databases 16
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbnamea dumpm-g ly yes
repl-diskless-sync no
repl-diskless-sync-delay 5
repl-disable-tcp-nodelay no
slave-priority 100
appendonly nofseappendnendnname "appendappendnnoappenda -rewrite no
auto-aof-rewrite-percentage 100
aof-load-truncated yes
lua-time-limit 5000
slowlog-log-slower-than 10000
slowlog-max-holdlen 128 notify-keyspace-events ""
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entent 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000
activerehashing yes
ent-output-bcli-limit-bmal limit slave 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
aof-rewrite-incremental-fsync yes