当前位置:网站首页>Deploy halo blog with pagoda
Deploy halo blog with pagoda
2022-07-04 12:56:00 【Sakura dimension】
halo build
Software environment
Halo In theory, it can run on any support Java The platform of .
JRE(Java Runtime Environment)
Must be installed in the operating environment JRE, This is running Halo The minimum required software environment requirements . If you use Docker function Halo, This requirement can be ignored . from 1.4.3 rise , Version requirement is 11 Version above .1.4.3 The following needs 1.8 Version above .
MySQL( Optional )
This is not Halo Must rely on ,Halo By default, the built-in H2 Database, No separate installation required . If H2 Database Can't meet your requirements , You need to install and run well in the system MySQL. specific requirement :
- edition :5.7 +
- Character set (Character Set):utf8mb4
- Sort rule (Collate):utf8mb4_bin
- Storage engine :InnoDB
Supervisor Manager
One Python General process management program developed , Used to manage halo Run the process , Realize resident backstage .
Installation tutorial
install JRE 11
CentOS
sudo yum install java-11-openjdk -y
Check version
java -version
If you output the following similar content, it means success
openjdk version "11.0.10" 2021-01-19 LTSOpenJDK Runtime Environment 18.9 (build 11.0.10+9-LTS)OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9-LTS, mixed mode, sharing)
Ubuntu
sudo apt-get install openjdk-11-jre -y
Check version :
java -version
If you output the following similar content, it means success
openjdk version "11.0.10" 2021-01-19OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.20.04)OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.20.04, mixed mode)
Create new system users
It is not recommended to use the system directly root User to run Halo. If you need to use directly root user , Please skip this step . Tutorial use root Account example . Create a file called halo Users of ( The name is optional )
useradd -m halo
To give sudo jurisdiction
usermod -aG wheel halo
by halo User created password
passwd halo
Log in to halo Account
su - halo
install halo
Come to the pagoda to create a website , Set the directory to facilitate the placement of program files
cd Go to the website directory
cd /www/wwwroot/ecy
Download the running package
wget https://dl.halo.run/release/halo-1.5.3.jar -O halo.jar
establish halo working directory
Halo Depends on the working directory , stay Halo When running, a .halo Folder , The absolute path is ~/.halo. Because this working directory is fixed , So what I said above The running package does not limit the storage location
mkdir ~/.halo && cd ~/.halo
Download the sample configuration file to the working directory
wget https://dl.halo.run/config/application-template.yaml -O ./application.yaml
test run Halo
Enter the website directory and execute the run command
cd /www/wwwroot/ecy && java -jar halo.jar
If you see log output similar to the following , It means the start is successful .
run.halo.app.listener.StartedListener : Halo started at http://127.0.0.1:8090run.halo.app.listener.StartedListener : Halo admin started at http://127.0.0.1:8090/adminrun.halo.app.listener.StartedListener : Halo has started successfully!
PS: Configure database or port, etc , For configuration, please refer to Configure the reference Don't forget to release at the firewall of the pagoda or the server firewall halo port
Use Supervisor trusteeship Halo process
open Supervisor Manager settings , Click on Add daemons Button .
The form information to be filled in is as follows :
name : at will Start the user : If you follow stay Linux
The deployment environment Created for running Halo Users of , Then select the user you created . Otherwise, choose the default root
. Running directory : The storage directory of the running package , Fill in... According to the actual situation , You need to ensure that the directory you choose contains the running package . Start command :java -server -Xms256m -Xmx256m -jar halo.jar
Click... After filling in determine
button .
Use anti proxy to realize domain name access halo
It is recommended to deploy before anti proxy ssl certificate . I use the example of pagoda free certificate , You need to turn on the force ssl
Add anti proxy
The goal is URL Set your configuration . I don't need to do any port modification , Use the default 8090 port . Also in the pagoda firewall release .
You can visit the domain name Halo The initialization .
边栏推荐
- MDK在头文件中使用预编译器时,#ifdef 无效的问题
- WPF双滑块控件以及强制捕获鼠标事件焦点
- C語言:求100-999是7的倍數的回文數
- 游戏启动后提示安装HMS Core,点击取消,未再次提示安装HMS Core(初始化失败返回907135003)
- 16. Memory usage and segmentation
- Golang sets the small details of goproxy proxy proxy, which is applicable to go module download timeout and Alibaba cloud image go module download timeout
- 用fail2ban阻止密码尝试攻
- Dry goods sorting! How about the development trend of ERP in the manufacturing industry? It's enough to read this article
- Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
- 七、软件包管理
猜你喜欢
16.内存使用与分段
Fundamentals of container technology
After installing vscode, the program runs (an include error is detected, please update the includepath, which has been solved for this translation unit (waveform curve is disabled) and (the source fil
美团·阿里关于多模态召回的应用实践
【AI系统前沿动态第40期】Hinton:我的深度学习生涯与研究心法;Google辟谣放弃TensorFlow;封神框架正式开源
昨天的事情想说一下
Abnormal mode of ARM processor
n++也不靠谱
洞见科技解决方案总监薛婧:联邦学习助力数据要素安全流通
Will the concept of "being integrated" become a new inflection point of the information and innovation industry?
随机推荐
C language array
老掉牙的 synchronized 锁优化,一次给你讲清楚!
Fastlane one click package / release app - usage record and stepping on pit
求解:在oracle中如何用一条语句用delete删除两个表中jack的信息
runc hang 导致 Kubernetes 节点 NotReady
MDK在头文件中使用预编译器时,#ifdef 无效的问题
Rsyslog配置及使用教程
IIS error, unable to start debugging on the webserver
2022, 6G is heating up
Is the main thread the same as the UI thread- Is main thread the same as UI thread?
C语言:求字符串的长度
比量子化学方法快六个数量级,一种基于绝热状态的绝热人工神经网络方法,可加速对偶氮苯衍生物及此类分子的模拟
Sort merge sort
After the game starts, you will be prompted to install HMS core. Click Cancel, and you will not be prompted to install HMS core again (initialization failure returns 907135003)
众昂矿业:为保障萤石足量供应,开源节流势在必行
用fail2ban阻止密码尝试攻
0x15 string
Backgroundworker usage example
Practice of retro SOAP Protocol
C language: find the length of string