In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the knowledge of "how to build WordPress and bind domain names in the Docker container of DaoCloud". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
I. DaoCloud space application and creation of MysqL database
1. DaoCloud official website:
Official home page: http://www.daocloud.io/
2. DaoCloud began to run in 2015, has been under internal testing, and is currently open for registration. Now in the promotion period, there are activities to invite friends to send books, interested friends can click on the home navigation "activities" link to participate.
3. After registering DaoCloud successfully, you can log in to the DaoCloud management control panel, where you can see code construction, image repository, service integration, my host, application management, accelerator and so on.
4. Create MysqL database. Click "Service Integration". Here are popular application services from DaoCloud and other third-party SaaS providers. The Wordpress we will build later needs MysqL, so create a MysqL database.
5. Click "create service instance".
6. Next, specify the "service instance name" for the service instance. The service instance name can only contain English numbers, underscore _, decimal point, and minus sign -, and cannot be duplicated with the existing service instance. If configured, it is free of charge for 50MB space and 20MB memory.
7. After the MysqL is created successfully, go to the service instance page, and on the Overview tab, you can view the service parameters: connection address, instance name, user and password.
II. Install and run Wordpress applications in DaoCloud space
1. In the image repository of DaoCloud, you can see that there are two types of applications: my image and DaoCloud image. DaoCloud images are some instance applications that DaoCloud presets in the store, including operating systems, utilities, technology stacks, applications, etc., including PHP, MysqL, Nginx, Ghost, Ubuntu, CentOS, Wordpress and so on.
2. Select the Wordpress image, and click the latest deployment version in the upper right corner of the screen.
3. On the deployment page, you need to specify the name of the container instance. The maximum configuration of the container is memory 256MB, and Wordpress accounts for a large number of memory. It is recommended to use a high configuration.
4. Wordpress needs to use MysqL database. When creating an instance, we need to bind the MysqL we just created for Wordpress.
5. After a while, you can see that the Wordpress has been successfully deployed. Currently, DaoCloud provides users with a second-level domain name in the format of * .daoapp.io. The default composition of the domain name is the combination of the project name and the container name, with an underscore in the middle.
6. Click to open Wordpress, and you need to configure your Wordpress for the first time.
7. Wordpress runs normally on the DaoCloud space, and everything is normal in the background.
8. You can install plug-ins directly in the Wordpress background of DaoCloud.
9. DaoCloud runs Wordpress to modify the fixed link.
10. It should be reminded that DaoCloud runs Wordpress because uploaded files, such as images, will be saved in the container. Container redeployment may result in the loss of uploaded files, and the installation of plug-ins and configuration changes will be cleared.
3. Bind domain name management operations to DaoCloud space applications
1. In DaoCloud space application management, there are mainly containers, configuration, monitoring, logs, events, domain names, publishing and settings.
2. Container configuration can modify memory size, change data center, and so on.
3. The main monitoring options are CPU, memory, network bandwidth and other usage statistics.
4. You can see the corresponding record in the log, and the error log can also be found here. The following figure shows the error prompt that the host is out of memory when I test Wordpress.
5. Domain name binding is supported in DaoCloud space. Enter your own domain name and click OK to get the domain name bound private CNAME address generated by DaoCloud. Domain names that have been prepared for the # case can contact customer service and ask them to provide the CNAME of the prepared domain name, so that they do not have to be resolved to China through overseas lines.
6. After obtaining the CNAME of the domain name, you can go to your domain name DNS management office to modify the CNAME record of the domain name.
7. After the domain name DNS takes effect, you can access the application through your own domain name. Domain names without BA numbers will first visit foreign nodes and then go back to China, which will be slower than directly using second-level domain names in DaoCloud space.
This is the end of the introduction of "how to build WordPress and bind domain names in DaoCloud's Docker container". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.