用了那样多个开源博客系统,还是最兴趣这个
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><strong style="color: blue;"><span style="color: black;"><strong style="color: blue;"><span style="color: black;"><strong style="color: blue;">来自:开源最前线(ID:OpenSourceTop) </strong></span></strong></span></strong></p><span style="color: black;">大<span style="color: black;">都数</span>程序员<span style="color: black;">皆想</span>要<span style="color: black;">持有</span>一个自己的博客网站,一方面是想记录自己平常的经验心得,另一方面随着博客<span style="color: black;">文案</span>内容的<span style="color: black;">累积</span>,后期兴许还能发展出副业。</span><span style="color: black;">开源的博客有<span style="color: black;">非常多</span>,诸如OneBlog、solo、plumemo、halo等,看了<span style="color: black;">非常多</span>现成的比较成熟的开源博客系统,我<span style="color: black;">发掘</span>还是最<span style="color: black;">爱好</span>Halo。</span><span style="color: black;">Halo是一个优秀的现代化的博客/CMS系统,博客可选主题丰富,还<span style="color: black;">供给</span>了小程序端,<span style="color: black;">况且</span>搭建<span style="color: black;">过程</span>很简单。</span><span style="color: black;"><strong style="color: blue;">Halo特性</strong></span><span style="color: black;">Halo的<span style="color: black;">重点</span>特性如下:</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">代码开源:</strong>截止<span style="color: black;">日前</span><span style="color: black;">已然</span>发布了 59 个版本。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">易于<span style="color: black;">安排</span>:</strong>采用了程序与用户配置分离的方式,迁移和备份成本大大降低。只需一条命令<span style="color: black;">就可</span>运行,<span style="color: black;">同期</span><span style="color: black;">亦</span>支持Docker<span style="color: black;">安排</span></span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">REST API:</strong><span style="color: black;">供给</span>了完善的 Content API 和 Admin API,你<span style="color: black;">能够</span>用于<span style="color: black;">研发</span>单页面模板,<span style="color: black;">微X</span>小程序,<span style="color: black;">各样</span>系统的插件等。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">模板系统:</strong>完善的模板系统,支持自定义配置,支持在线安装和更新。</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">附件系统:</strong>支持本地上传,阿里云 OSS/又拍云 OSS/七牛云 OSS/SM.MS 等云存储</span></p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><strong style="color: blue;">评论系统:</strong><span style="color: black;">持有</span>独立的评论插件,<span style="color: black;">运用</span> Vue <span style="color: black;">研发</span>,只需在页面引入构建好的 JS 文件<span style="color: black;">就可</span>,完美地和主题相结合。</span></p><span style="color: black;">前面<span style="color: black;">说到</span>过Halo的可选主题<span style="color: black;">非常</span>丰富,有多丰富呢?下图就一目了然了:</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><img src="https://mmbiz.qpic.cn/sz_mmbiz_jpg/kOTNkic5gVBE4zDIgjMGAl0htph0D1Oo6zVEaQjrcYXo2pSkNaTYh4PzG22iamYmjzRliaj6pkTvHp53GosHljtIQ/640?wx_fmt=jpeg&tp=webp&wxfrom=5&wx_lazy=1&wx_co=1" style="width: 50%; margin-bottom: 20px;"></p><span style="color: black;"><strong style="color: blue;">Halo安装<span style="color: black;">过程</span></strong></span><span style="color: black;"><span style="color: black;">日前</span>运行 Halo 的最低依赖<span style="color: black;">需求</span>为 JRE 11,请务必<span style="color: black;">保证</span>在进行下面操作之前<span style="color: black;">已然</span>正确安装了 JRE。<span style="color: black;">检测</span> JRE 版本:</span><span style="color: black;">java</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> -version</p><span style="color: black;"><span style="color: black;">倘若</span>正确输出了 JRE 的版本,<span style="color: black;">那样</span>请继续进行下面的操作。此文档不会<span style="color: black;">包括</span> JRE 的<span style="color: black;">详细</span>安装方式。</span><span style="color: black;">1、创建新的系统用户,创建一个名为 halo 的用户</span><span style="color: black;">useradd</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> -m halo</p><span style="color: black;">给予 sudo 权限</span><span style="color: black;">usermod</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> -aG wheel halo</p><span style="color: black;">为 halo 用户创建<span style="color: black;">秘码</span></span><span style="color: black;">passwd</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> halo</p><span style="color: black;">登录到 halo 账户</span><span style="color: black;">su</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> - halo</p><span style="color: black;">2、创建存放运行包的目录</span>mkdir ~/app && <span style="color: black;">cd</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ~/app</p><span style="color: black;">3、下载运行包</span><span style="color: black;">wget</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> https://dl.halo.run/release/halo-1.4.6.jar -O halo.jar</p><span style="color: black;">4、创建工作目录</span>mkdir ~/.halo &&<span style="color: black;">cd</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ~/.halo</p><span style="color: black;">5、下载示例配置文件到工作目录</span><span style="color: black;">wget</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> https://dl.halo.run/config/application-template.yaml -O ./application.yaml</p><span style="color: black;">6、编辑配置文件,配置数据库<span style="color: black;">或</span>端口等</span><span style="color: black;">vim</span> <span style="color: black;">application</span><span style="color: black;">.yaml</span><span style="color: black;">7、测试运行 Halo</span><span style="color: black;">cd</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"> ~/app && java -jar halo.jar</p><span style="color: black;">8、如看到类似以下日志输出,则<span style="color: black;">表率</span><span style="color: black;">起步</span>成功</span>run.halo.app.listener.StartedListener : Halo started at http:<span style="color: black;">//127.0.0.1:8090</span>run.halo.app.listener.StartedListener : Halo admin started at http:<span style="color: black;">//127.0.0.1:8090/admin</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">run.halo.app.listener.StartedListener : Halo has started successfully!</p><span style="color: black;">打开 http://ip:端口号,<span style="color: black;">就可</span>看到安装引导界面。</span><span style="color: black;"><span style="color: black;">详细</span>的安装指南,创建者还发布了<span style="color: black;">仔细</span>的文档,当兴趣的<span style="color: black;">能够</span>去<span style="color: black;">瞧瞧</span>。官方<span style="color: black;">位置</span>:</span><span style="color: black;">https://docs.halo.run/install/linux</span><span style="color: black;">总体<span style="color: black;">来讲</span>,用Halo搭建一个网站的感觉还是不错的,有<span style="color: black;">运用</span>过的伙伴们么?<span style="color: black;">一块</span>分享一下<span style="color: black;">运用</span>感受啊 .</span>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;">— <span style="color: black;">完</span> —</p>
<p style="font-size: 16px; color: black; line-height: 40px; text-align: left; margin-bottom: 15px;"><span style="color: black;"><span style="color: black;">点<span style="color: black;">这儿</span>
页:
[1]