Skip to content

redis install ​

Installing on an Operating System ​

There are plenty of similar tutorials and documents, and Windows and Linux have different installation methods, so they are not covered in detail here. The Docker-based installation is mainly introduced below.

Docker Installation ​

提示

Before running the container, if there is no bridge network, create one first for inter-container communication: docker network create -d bridge fastbee-bridge

Run the following command to install, where requirepass is the access password.

shell
docker run \
--name redis \
--publish 6379:6379 \
--volume /var/data/redis:/usr/local/etc/redis  \
--volume /var/data/redis/data:/data  \
--network fastbee-bridge \
--restart unless-stopped \
--detach \
redis:7.0.0 \
--requirepass "fastbee" \
--appendonly yes

FastBee | fastbee.cn