halo 安装部署

halo 安装教程

以下是halo linux 官方部署文档
https://docs.halo.run/getting-started/install/linux

安装jar

yum install java-11-openjdk -y

查看版本

[root@localhost ~]# java --version
openjdk 11.0.14.1 2022-02-08 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.14.1+1-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.14.1+1-LTS, mixed mode, sharing)

下载halo到 /opt/下面

wget https://dl.halo.run/release/halo-1.5.2.jar -O /opt/halo.jar

下载一个启动服务

wget https://dl.halo.run/config/halo.service -O /etc/systemd/system/halo.service

vim /etc/systemd/system/halo.service

[root@localhost ~]# cat /etc/systemd/system/halo.service 
[Unit]
Description=Halo Service
Documentation=https://docs.halo.run
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/java -server -Xms4096m -Xmx4096m -jar /opt/halo.jar
ExecStop=/bin/kill -s QUIT $MAINPID
Restart=always
StandOutput=syslog

StandError=inherit

[Install]
WantedBy=multi-user.target

启动服务

systemctl daemon-reload
systemctl start halo
systemctl enable halo
journalctl -n 20 -u halo

设置评论

https://github.com/halo-dev/halo-comment-yu

https://npm.elemecdn.com/halo-comment-yu@latest/dist/halo-comment.min.js

主题下载

https://github.com/halo-dev

markdown 使用文档

https://docs.halo.run/user-guide/markdown

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

石兴稳

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值