NAS 硬件选购
硬件知识:http://madaimeng.com/article/NAS-Assemble-1-hardware-ref/#
选购:https://post.smzdm.com/p/120480/
软件:https://www.zhihu.com/question/21359049/answer/34375825
硬件知识:http://madaimeng.com/article/NAS-Assemble-1-hardware-ref/#
选购:https://post.smzdm.com/p/120480/
软件:https://www.zhihu.com/question/21359049/answer/34375825
树莓派的 CPU 是 ARM v8 架构 64 位,因此从系统到软件都要选择支持 ARM 64 的版本
详细参数:
https://www.raspberrypi.org/products/raspberry-pi-4-model-b/specifications/
帮助开发者和系统管理员使用容器开发、部署和运行应用。
对于开发者而言,最直观的感受就是原先我们要跑起来一个已有项目,必须装一大堆依赖。
在没有 Docker 的时候,可以有两种方式:
在 Docker 安装文档的 CentOS 部分,要求最低要使用 CentOS 7。
安装文档:
https://docs.docker.com/install/linux/docker-ce/centos/
这是因为 CentOS 从 7 开始使用 Linux 3.10 以上版本的内核。从 Docker 的 FAQ 中可以看到对于 Linux 的要求:
Any distribution running version 3.10+ of the Linux kernel FAQ:
https://docs.docker.com/engine/faq/#what-platforms-does-docker-run-on
如果是覆盖文件,repo 不会生效。执行以下命令使其生效
yum-config-manager –add-repo /etc/yum.repo.d/CentOS-Base.repo
http://huqunxing.site/2017/03/31/linux%E5%86%85%E5%AD%98%E5%8D%A0%E7%94%A8%E5%88%86%E6%9E%90/
https://bobcares.com/blog/error-137-docker/
https://success.docker.com/article/what-causes-a-container-to-exit-with-code-137
https://www.cnblogs.com/zhangeamon/p/5500744.html
set mouse-=a
cd /
fallocate -l 1G swapfile
chmod 600 swapfile
mkswap swapfile
swapon swapfile
如果执行 swapon 的时候,提示 swapon failed: Invalid argument
则把 fallocate -l 2G swapfile
替换为 dd if=/dev/zero of=/swapfile count=4096 bs=1MiB
cd /
dd if=/dev/zero of=/swapfile count=1024 bs=1MiB
chmod 600 swapfile
mkswap swapfile
swapon swapfile
参考:
https://blog.csdn.net/zstack_org/article/details/53258588