Redis will now exit to prevent data corruption. Note that it is possible to suppress this warning by setting the following config: ignore-warnings ARM64-COW-BUG
复制代码
从dockerhub查看当前镜像使用的redis版本
然后去官网下载对应版本的配置文件(这个是下载7.2),去掉末了一行的注释。然后将bind注释掉,protected-mode yes改成protected-mode no。可以添加requirepass,后面跟密码。利用和redis没啥区别
运行时有个警告,说/proc/sys/net/core/somaxconn数字太小了
WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128
那改大一点echo 1024 > /proc/sys/net/core/somaxconn
docker run -it --rm --net=host -v /data/data/com.termux/files/home/redis.conf:/etc/redis.conf \