1.docker安裝
#sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-enginesudo yum install -y yum-utils
sudo yum install -y yum-utils
##sudo yum-config-manager --add-repo https : //download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo systemctl enable docker
#2.安裝redis
#docker pull redis#docker run -itd --name redis-test -p 6379:6379 redis --requirepass 1qaz9ol.<br>
#
以上是centos怎麼以docker方式安裝redis的詳細內容。更多資訊請關注PHP中文網其他相關文章!