Home > Database > Redis > body text

How to install redis in docker mode on centos

WBOY
Release: 2023-05-28 15:34:43
forward
862 people have browsed it

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
Copy after login

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
Copy after login
sudo systemctl start docker
Copy after login
sudo systemctl enable docker
Copy after login

2.安装redis

docker pull redis<br>docker run -itd --name redis-test -p 6379:6379 redis --requirepass 1qaz9ol.

The above is the detailed content of How to install redis in docker mode on centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template