docker run -p 6379:6379 --name redis -v /data/redis/conf/redis.conf:/etc/redis/redis.conf -v /data/redis/data:/data -d redis:6.0.8 redis-server /etc/redis/redis.conf --appendonly yes redis6.0.8可以启动
redis6.2.20启动失败,启动命令如下:
docker run -p 6379:6379 --name redis -v /data/redis/conf/redis.conf:/etc/redis/redis.conf -v /data/redis/data:/data -d redis:6.2.20 redis-server /etc/redis/redis.conf --appendonly yes
```bash
1:C 13 Oct 2025 05:33:24.011 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 13 Oct 2025 05:33:24.011 # Redis version=6.2.20, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 13 Oct 2025 05:33:24.011 # Configuration loaded 1:M 13 Oct 2025 05:33:24.012 * monotonic clock: POSIX clock_gettime _._ _.-`__ ''-._ _.-` . _. ''-._ Redis 6.2.20 (00000000/0) 64 bit .-` .-. \/ _.,_ ''-._ ( ' , .- | , ) Running in standalone mode |-._-...- __...-.-._|' _.-'| Port: 6379 | -._ ._ / _.-' | PID: 1 -._ -._ -./ _.-' _.-' |-._-._ -.__.-' _.-'_.-'| | -._-._ _.-'_.-' | https://redis.io -._ -._-.__.-'_.-' _.-' |-._-._ -.__.-' _.-'_.-'| | -._-._ _.-'_.-' | -._ -._-.__.-'_.-' _.-' -._ -.__.-' _.-' -._ _.-' -.__.-' 1:M 13 Oct 2025 05:33:24.012 # 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 13 Oct 2025 05:33:24.012 # Server initialized 1:M 13 Oct 2025 05:33:24.012 # Fatal: Can't initialize Background Jobs.
```