运行环境为CentOS 8:
VOL_HOME=/data/volumes; REDIS_VERSION='7.4-alpine'; mkdir -p $VOL_HOME/redis/conf/; mkdir -p $VOL_HOME/redis/data; touch $VOL_HOME/redis/conf/redis.conf; echo 'requirepass joycode' > $VOL_HOME/redis/conf/redis.conf; podman run --name redis \ -d \ -p 6379:6379 \ -v $VOL_HOME/redis/conf:/etc/redis \ -v $VOL_HOME/redis/data:/data \ registry.cn-guangzhou.aliyuncs.com/maxwoods/redis:$REDIS_VERSION redis-server --requirepass joycode \ --appendonly yes;
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END