In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This post is about Docker installing solo blogs and deploying them to a Cloud Virtual Machine. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
Solo is a small but beautiful open source blogging system designed for programmers. Solo has a very active community, posts can be pushed to the community as posts, and replies from the community will be linked as blog comments
Overall, this blog framework is good, and the community is constantly improving. Most importantly, it is written in Java. Like popular Hexo, Hugo and other blog frameworks are static blog, no background what, the main published articles are Markdown to HTML format published, but solo is a background management, and Jpress somewhat similar.
Official website: https://b3log.org/solo, generally install a blog framework the most important thing is to understand the official documents, although sometimes read, but the installation encountered problems are "strange line eight strange," I am here ready to write a tutorial, as "step on the pit" diary to see is also good.
Local runs are mainly used for trial or static site generation
1. Docker deployment
Docker deployment is a dynamic blog usage that is primarily used to deploy dynamic blogs on servers.
Common commands for learning Docker and understanding: blog.csdn.net/qq_41684621/category_9701814.html
Get the latest mirror
docker pull b3log/solo
start the container
Note: If you are not sure how to use\to newline the following command, don't newline and write the entire command in one line.
using MySQL
Manual library creation (library name solo, character set utf8mb4, sorting rule utf8mb4_general_ci):
create database solo default character set utf8mb4 collate utf8mb4_general_ci;create user 'root'@'127.0.0.1' identified by '123456';grant all privileges on *.* to 'root'@'127.0.0.1';flush privileges;
Open mysql on the server and execute it one by one.
Note: The password above refers to mysql root password
Start container:
docker run --detach --name solo --network=host \ --env RUNTIME_DB="MYSQL" \ --env JDBC_USERNAME="root" \ --env JDBC_PASSWORD="123456" \ --env JDBC_DRIVER="com.mysql.cj.jdbc.Driver" \ --env JDBC_URL="jdbc:mysql://127.0.0.1:3306/solo? useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true" \ b3log/solo --listen_port=6000 --server_scheme=http --server_host=localhost --server_port=
Description of startup parameters:
--listen_port: process listening port, can be customized and modified
--server_scheme: Final access protocol, If anti-proxy service enabled HTTPS here also need to change to https
--server_host: Last access domain name or public IP, do not bring port
--server_port: Last access port, Use the browser default value of 80 or 443 can be left blank
A description of the full startup parameters can be viewed using-h.
Note: JDBC_PASSWORD also refers to the root password of mysql on the Cloud Virtual Machine
Note--listen_port, the port number I set for listening is 6000, and the official one is 8080.
Thank you for reading! About "Docker how to install solo blog deployment to the Cloud Virtual Machine" this article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.