In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Docker installation of wordpress operation process, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
Docker run-- name wp_mysql56\-p 3307 data/docker/mysql:/var/lib/mysql 3306\-v / data/docker/mysql:/var/lib/mysql\-e MYSQL_ROOT_PASSWORD='123456'\-d mysql:5.6-d: run the container in the background-- name wp_mysql56: specify the name of the container, which cannot be repeated Do not specify randomly generated-v / data/docker/mysql:/var/lib/mysql: add directory mapping, / var/lib/mysql in the container is mapped to / data/docker/mysql-e MYSQL_ROOT_PASSWORD=123456 of the host: specify the environment parameters of the container, here initialize the root password of the MySQL-p 3307 data/docker/mysql 3306: Port mapping Here, port 3306 in the container is mapped to port 3307 mysql of the host: the name of the image, which is first loaded locally. Download and view the mysql log from the image warehouse: docker logs wp-mysql starts the wordpress container docker run-- name wordpress2\-- link wp_mysql56:mysql\-v / data/docker/html:/var/www/html\-p 888wordpress 80\-d wordpressdocker run: startup container-d: background running container-name wordpress2: specify the name of the container-link wp_mysql56:mysql: container association Now the launched container can access the wp_mysql56 database function through mysql-p 8001 wordpress 80: Port mapping wordpress: the name of the image enters the container: docker exec-it wordpress2 / bin/bash will it help you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.