全栈个人云平台搭建指南:基于 Hexo 与 Memos 的双系统架构
摘要:本文详细介绍了如何在阿里云 ECS 上搭建一套高可用、低成本的个人云平台。架构采用 “动静分离” 策略: 主站:基于 Hexo + Butterfly 的静态技术博客,专注于高性能内容展示。 子站:基于 Docker + Memos 的动态日记系统,用于碎片化记录与私有化存储。 🌏 一、 基础设施环境初始化服务器选用阿里云 ECS(Ubuntu 系统,2核 2G 配置),为保证系统安全与稳定性,需进行以下初始化操作。 1.1 系统安全加固 用户管理:创建普通用户 admin-alex 并赋予 sudo 权限,禁止 root 用户直接远程登录。 SSH 配置:修改 /etc/ssh/sshd_config,设置 PermitRootLogin no,并启用密钥对登录,关闭密码验证。 1.2 内存优化 (Swap)针对 2G 内存运行 Docker 可能出现的 OOM (内存溢出) 风险,配置 2GB 的 Swap 交换分区: 1234sudo fallocate -l 2G /swapfilesudo chmod 600 /swapfilesudo mkswap ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
