用了那么多个开源博客系统,还是最喜欢这个(附文档)
优采云 发布时间: 2022-08-24 04:41用了那么多个开源博客系统,还是最喜欢这个(附文档)
正文
大家好,我是小乐。
今天,推荐一个博客系统项目。乐哥第一次使用就有点上头,爱不释手,必须要推荐给大家。
上次是谁要的博客系统项目啊,乐哥帮你找到了。
这是我目前见过最好的博客系统项目。功能完整,代码结构清晰。值得推荐。
项目介绍
<p data-tool="mdnice编辑器" mp-original-font-size="16" mp-original-line-height="28" style="margin: 0px;padding: 1em 0px 8px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;clear: both;min-height: 1em;font-size: 16px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;letter-spacing: 0.544px;color: rgb(74, 74, 74);line-height: 28px;visibility: visible;">最近乐哥在逛网站的时候发现一个不错的资料文档,乐哥觉得不错,值得拿出来和大家分享下。</p>
大多数程序员都想要拥有一个自己的博客网站,一方面是想记录自己平常的经验心得,另一方面随着博客文章内容的积累,后期兴许还能发展出副业。
开源的博客有很多,诸如OneBlog、solo、plumemo、halo等,看了很多现成的比较成熟的开源博客系统,我发现还是最喜欢Halo。
Halo是一个优秀的现代化的博客/CMS系统,博客可选主题丰富,还提供了小程序端,而且搭建步骤很简单。
Halo特性
Halo的主要特性如下:
前面提到过Halo的可选主题十分丰富,有多丰富呢?下图就一目了然了:
<p mp-original-font-size="17" mp-original-line-height="25.600000381469727" style="box-sizing: border-box !important;margin: 0px 8px;padding: 0px;outline: 0px;max-width: 100%;overflow-wrap: break-word !important;clear: both;min-height: 1em;font-size: 17px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: 0.544px;orphans: 2;text-indent: 0px;text-transform: none;white-space: normal;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;caret-color: rgb(51, 51, 51);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;color: rgb(34, 34, 34);font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;visibility: visible;text-align: center;line-height: 25.6px;">牛逼啊!接私活必备的 N 个开源项目!赶快收藏吧</p>
Halo安装步骤
目前运行 Halo 的最低依赖要求为 JRE 11,请务必确保在进行下面操作之前已经正确安装了 JRE。检查 JRE 版本:
java -version<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
如果正确输出了 JRE 的版本,那么请继续进行下面的操作。此文档不会包含 JRE 的具体安装方式。
1、创建新的系统用户,创建一个名为 halo 的用户
useradd -m halo<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
给予 sudo 权限
usermod -aG wheel halo<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
为 halo 用户创建密码
passwd halo<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
登录到 halo 账户
su - halo<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
2、创建存放运行包的目录
mkdir ~/app && cd ~/app<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
3、下载运行包
wget https://dl.halo.run/release/halo-1.4.6.jar -O halo.jar<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
4、创建工作目录
mkdir ~/.halo && cd ~/.halo<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
5、下载示例配置文件到工作目录
wget https://dl.halo.run/config/application-template.yaml -O ./application.yaml<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
6、编辑配置文件,配置数据库或者端口等
vim application.yaml<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
7、测试运行 Halo
cd ~/app && java -jar halo.jar<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
8、如看到类似以下日志输出,则代表启动成功
run.halo.app.listener.StartedListener : Halo started at http://127.0.0.1:8090<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />run.halo.app.listener.StartedListener : Halo admin started at http://127.0.0.1:8090/admin<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />run.halo.app.listener.StartedListener : Halo has started successfully!<br style="margin: 0px;padding: 0px;outline: 0px;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;" />
打开 :端口号,即可看到安装引导界面。
具体的安装指南,创建者还发布了详细的文档,当兴趣的可以去看看。
总体来说,用Halo搭建一个网站的感觉还是不错的,有使用过的伙伴们么?一起分享一下使用感受啊
<br />
最后,想学习这个项目的可以查看项目地址:
项目源码,怎么领取?
<p mp-original-font-size="16" mp-original-line-height="26" style="margin-top: 1px;margin-bottom: 1px;padding-top: 8px;padding-bottom: 8px;outline: 0px;letter-spacing: 0.544px;caret-color: rgb(0, 0, 0);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;text-align: center;line-height: 26px;word-break: normal !important;">源码获取
扫码下方二维码,后台回复【博客】即可获取所有系统
欢迎有需要的同学试试,如果本文对您有帮助,也请帮忙点个赞 + 在看啦!❤️
<p data-tool="mdnice编辑器" mp-original-font-size="16" mp-original-line-height="28" style="padding-top: 1em;padding-bottom: 8px;outline: 0px;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;letter-spacing: 0.544px;color: rgb(74, 74, 74);line-height: 28px;">在 程序员小乐 还有更多优质项目系统学习资源,欢迎分享给其他同学吧!</p>
最后给读者整理了一份BAT大厂面试真题,需要的可扫码加微信备注:“面试”获取。
--END--
(放到你圈子里,朋友们会感激您)
PS:如果觉得我的分享不错,欢迎大家随手点赞、在看。本文仅供交流学习 , 版权归属原作者。温馨提示:《程序员小乐》推文内容如有侵权请您告知我们会在第一时间处理或撤销;互联网是一个资源共享的生态圈,我们崇尚分享。往日好文: