Loading
0

podman中运行redis

运行环境为CentOS 8:

VOL_HOME=/data/podman;
REDIS_VERSION='7.2.4';
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:/usr/local/etc/redis \
-v $VOL_HOME/redis/data:/data \
redis:$REDIS_VERSION redis-server /usr/local/etc/redis/conf/redis.conf \
 --appendonly yes;

最后编辑于:2024/3/8作者: joycode

我不入地狱,谁入地狱?

评论已关闭