当前位置:网站首页>在arm版本rk3399中搭建halo博客
在arm版本rk3399中搭建halo博客
2022-06-28 19:03:00 【落子无悔!】
五一快乐
快乐到无聊, 无意间发现一个不错的开源项目 halo, 即博客系统, 正好有个arm开发板rk3399放着浪费, 所以有了一个想法: 通过docker来制作一个arm版本的halo博客, 可以展示一些个人信息和文章, 并且打包镜像, 开源出去(因为转了一圈都是x86版本的), 所以就有了下面的工作.
之前为实验室做过一个系统来展示实验室信息以及共享一些内部资源的网站, 但是后期因为没人维护也就渐渐没人用了, 在搭建这个halo博客的过程中, 让我有了一个更好的为实验室搭建所有展示信息的网站方案, 即通过halo博客系统来上传实验室各种科研信息\科研方向\科研成果, 在加一个链接静态资源下载链接(该链接包含通过python HTTPserver做的资源共享网站); 上述两个步骤就能够非常好的实现实验室信息的展示功能了. 最后希望实验室的学弟学妹们看到上述介绍能够亲自尝试一下 halo+http的方案.
1. docker
1.1 下载安装
# 设置资源存储路径
sudo vim /etc/systemd/system/multi-user.target.wants/docker.service
# 更改ExecStart=/usr/bin/dockerd --graph=<your_new_docker_img_path> --storage-driver=overlay
sudo systemctl daemon-reload
# 设置下载源
sudo vim /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
sudo service docker restart
# 设置用户权限
sudo docker run hello-world
sudo groupadd docker
# groupadd: group 'docker' already exists
sudo usermod -aG docker $USER
sudo gpasswd -a $USER docker
newgrp docker
docker run hello-world
1.2 下载镜像运行
docker pull zjq2048/rk3399-halo:1.5.2
docker run -it --restart=always -p 8090:8090 --name halo -d zjq/rk3399-halo:0.1
# 浏览器访问 ip:8090
2. 博客展示

文章是markdown格式
可以修改html页面的信息
自定义展示页面
总结
整个过程能学到了什么呢?
- docker配置
- docker的镜像制作
- docker镜像上传
- Java运行
边栏推荐
猜你喜欢
![[unity3d] emission (raycast) physical ray (Ray)](/img/46/a9fda743f597db9584c982b10c191c.png)
[unity3d] emission (raycast) physical ray (Ray)

道路千万条,为什么这家创新存储公司会选这条?

How to change the status bar at the bottom of win11 to black? How to change the status bar at the bottom of win11 to black

Grafana draws the trend chart

MindSpore系列一加载图像分类数据集

使用Karmada实现Helm应用的跨集群部署

微信小程序接入百度统计报错 Cannot read property ‘mtj‘ of undefined

SQL interview question: find the maximum number of consecutive login days

180.1. Log in continuously for n days (database)

C#连接数据库完成增删改查操作
随机推荐
G 双轴图sql脚本
In which industries did the fire virtual human start to make efforts?
数字化转型的1个目标,3大领域,6大因素和9个环节
找出连续7天登陆,连续30天登陆的用户
Anonymous function variable problem
Cvpr2022 | Zhejiang University and ant group put forward a hierarchical residual multi granularity classification network based on label relation tree to model hierarchical knowledge among multi granu
进阶高级-业务事务设计 开发入门
怎样去除DataFrame字段列名
Modular operation
Leetcode 周赛299
月环比sql实现
使用.NetCore自带的后台作业,出入队简单模拟生产者消费者处理请求响应的数据
About Significance Tests
腾讯汤道生:面向数实融合新世界,开发者是最重要的“建筑师”
Openharmony - detailed source code of Kernel Object Events
Jenkins Pipeline 对Job参数的处理
Some error prone points of C language pointer
sql计算每日新增用户、及留存率指标
直播app系统源码,动态遇到视频时开始自动播放
Business layer modification - reverse modification based on the existing framework