栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

halo 安装部署

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/826535.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号