1.Linux the installation environment Docker
# added sequentially run the following command source yum
yum Update
yum the install EPEL -Y-Release
yum Clean All
yum List # Docker install and run. yum install docker-io -y
# Modify image repository
Vim /etc/docker/daemon.json
# changed below, and then restart Docker
{
"Debug": to true, "Experimental": to true,
"Registry-Mirrors": [ " HTTPS: // pb5bklzr. mirror.aliyuncs.com","https://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn "]
}
systemctl start docker
#Check the installation results.
docker info # start using Docker systemctl Start Run Docker Docker # daemon systemctl stop docker # Docker stop the daemon systemctl restart docker # Docker restart daemon # View information docker info
• Docker deploys redis and configures the password.
If you can’t access it, remember to see if the firewall/network security group port is open. If you
install redis from the source code, you can’t access remotely by default. ◦ You can access
remotely when you install redis on docker.
docker run -itd --name wnn-redis -p 8000:6379 redis --requirepass 123456