Docker安装Redis5.0

tech2024-05-22  78

 拉取镜像

docker pull redis:5.0

启动容器 

docker run -d -p 6379:6379 --name redis redis:5.0 --appendonly yes

查看日志 

docker logs 67dade7133d0

1:C 03 Sep 2020 09:59:07.277 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 03 Sep 2020 09:59:07.277 # Redis version=5.0.9, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 03 Sep 2020 09:59:07.277 # Configuration loaded 1:M 03 Sep 2020 09:59:07.279 * Running mode=standalone, port=6379. 1:M 03 Sep 2020 09:59:07.279 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 1:M 03 Sep 2020 09:59:07.279 # Server initialized 1:M 03 Sep 2020 09:59:07.279 # 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. 1:M 03 Sep 2020 09:59:07.279 * Ready to accept connections

最新回复(0)