In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to use Docker to quickly build a blog website, I hope you will gain something after reading this article, let's discuss it together!
I. preparatory work
The tutorials in this chapter are based on Docker, so you need to install the Docker environment on the server in advance.
Docker installation tutorial: https://www.yisu.com/article/94067.htm
II. Deployment process
(1) create a working directory
Mkdir ~ / .halo & & cd ~ / .halo
(2) download the configuration file to the working directory
Wget https://dl.halo.run/config/application-template.yaml-O. / application.yaml
(3) modify configuration file, configuration database or port, etc.
Vim application.yaml
(4) pull blog image source
Docker pull halohub/halo:1.4.13
(5) create a container
Docker run-it-d-- name halo-p 8090 halo:/root/.halo 8090-v / .8090-- restart=unless-stopped halohub/halo:1.4.13
Parameter explanation:
-it: enable the input function and connect the pseudo terminal
-d: the container runs in the background
-- name: specify a name for the container
-p: Port mapping in the format of host (host) port: container port, which can be configured in application.yaml.
-v: working directory mapping. The form is:-v host path: / root/.halo, which cannot be modified.
-- restart: it is recommended to set it to unless-stopped to start the Halo container automatically when Docker starts.
(6) Open the http://ip: port number to see the installation boot interface.
For example, the public network IP of my service is 81.71.136.94, then the address I visit is: http://81.71.136.94:8090/
After filling in the information, click install, and after the installation is complete, you will jump to the login page.
Enter the account password and click login to enter the blog background management interface.
Click to jump to the home page, you can go straight to the blog home page.
III. Access testing
Access: http://81.71.136.94:8090/ (need to change to your own server IP address)
After reading this article, I believe you have a certain understanding of "how to use Docker to quickly build a blog website". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
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.