运行环境为CentOS 8:
VOL_HOME=/home/podman; mkdir -p $VOL_HOME/redis/conf/; mkdir -p $VOL_HOME/redis/data; touch $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:6.2.6 redis-server /usr/local/etc/redis/conf/redis.conf \ --appendonly yes;
评论已关闭