1. Install MySQL# Download mysql in docker docker pull mysql #Start docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql #Enter the container docker exec -it mysql bash #Login to mysql mysql -u root -p //Press Enter to enter the password ALTER USER 'root'@'localhost' IDENTIFIED BY '123456'; #Add a remote login user. You can also log in directly with the root account. CREATE USER 'yrzsp'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; GRANT ALL PRIVILEGES ON *.* TO 'yrzsp'@'%'; question: Solution (1) View user information select host,user,plugin,authentication_string from mysql.user; Note: host is % means no restriction on IP. localhost means the local machine uses plugin other than mysql_native_password, then you need to change the password (2) Change the user password ① Update user to root, host to % and password to 123456 ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456'; ② Update user to root, host to localhost and password to 123456 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; Connection successful 3. Using MySQL #Enter the container docker exec -it mysql bash #Login to mysql mysql -u root -p //Enter password 2. Install Redis1. Install the latest version docker pull redis:latest 2. View local image docker images 3. Run the container docker run -itd --name redis -p 6379:6379 redis 4. Check the operation status docker ps 5. Connect to redis docker exec -it redis-test /bin/bash redis-cli 3. Install ZookeeperDownload Zookeeper docker pull zookeeper View Mirror docker images Start mirroring and map ports docker run --rm --name zookeeper -p 2181:2181 -d zookeeper View Container docker ps 5. Enter the Zookeeper container docker exec -it zookeeper /bin/bash Enter the bin directory: cd bin/ 6. Connect zkClient.sh root@6ec49958c478:/bin# zkCli.sh 4. Install RabbitMQInstall RabbitMQ docker pull rabbitmq:3.7.7-management View Mirror docker images Run RabbitMQ docker run -d --name rabbitmq -p 15672:15672 -p 5672:5672 rabbitmq:3.7.7-management View the image id docker ps 5. Enter rabbitmq docker exec -it image id /bin/bash This is the end of this article about the detailed explanation of various software installations of Docker under Windows. For more relevant Windows Docker installation content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Summary of several principles that should be followed in HTML page output
>>: The basic use of html includes links, style sheets, span and div, etc.
Use JS to implement a random roll call system for...
How to modify the mysql table partitioning progra...
Blockquote Definition and Usage The <blockquot...
1. Enter the host machine of the docker container...
This article example shares the specific code of ...
Table of contents Overview Build Process Related ...
This article example shares the specific code of ...
Contents of this article: Page hollow mask layer,...
This article shares the specific code for JavaScr...
Here is an introduction to changing the password ...
I don't know if it's because the binary d...
1. Concept 1. The difference between hot backup a...
This article shares the specific code of native j...
How to check where the metadata lock is blocked i...
There are currently three ways to display the cen...