In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install wordpress in docker. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Wordpress is a set of mature site building tools, with a perfect background, rich extensions, and a mobile app for you to post articles at any time. A few years ago, I built a wordpress website on raspberry pie, and it took me a whole day to complete wordpress.
But now, after all, times are different. With artifacts such as docker, you can build a wordpress website and run only a docker-compose.yml configuration file. Compose is a tool software developed by Docker company, which can manage multiple Docker containers to form an application. You define a configuration file docker-compose.yml in YAML format and write the invocation relationship between many containers. Then, with a single command, you can start / close these containers at the same time. And we used docker-compose.yml to install wordpress this time.
Create a zhaoolee-wp folder and create a new configuration file docker-compose.yml inside
Mkdir zhaoolee-wp & & cd zhaoolee-wp & & touch docker-compose.yml
Add the following to the docker-compose.yml and save it
Mysql: image: mysql:5.7 environment:-MYSQL_ROOT_PASSWORD=zhaoolee123-MYSQL_DATABASE=wordpressweb: image: wordpress:4.9.7-php7.0-apache links:-mysql environment:-WORDPRESS_DB_PASSWORD=zhaoolee123 ports:-"0.0.0.0 var/www/html volumes 80 wordpress:/var/www/html 80" working_dir: / var/www/html volumes:-wordpress:/var/www/html
In the sibling directory of docker-compose.yml, run docker-compose up-d
Visit the server ip and successfully enter the installation interface
Tips:
Enter the running container:
Sudo docker exec-it zhaoolee-wp_web_1 / bin/bash on how to install wordpress in docker to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.