MEMOS 的简单搭建 作者: Hogwarts 发布于: 2022-12-28 更新于: 2023-01-29 分类: 默认分类 没有那么多人来看你的 Memos,自娱自乐即可! #一、Docker搭建 ##1.1 运行命令 docker run -d --name memos --restart always -p 127.0.0.1:5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:latest ##1.2 说明 可以将`~`号改为其它路径;但冒号前的`.memos`目录是写死的。如修改`.memos`,则数据库文件失联。 ##1.3 Nginx反代代码 location ^~ / { proxy_pass http://127.0.0.1:5230; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; add_header X-Cache $upstream_cache_status; # cache add_header Cache-Control no-cache; expires 12h; } #二、静态页面展示(可选) 参考:`https://github.com/eallion/memos.top` ##2.1 下载到网站根目录 git clone https://github.com/eallion/memos.top ##2.2 修改index.html .......... ##2.3 修改logo和头像 在assets/img文件夹中 logo.webp is favicon avatar.jpg is your icon #三、在typecho网站中添加Memos页面 PHP水平太差,添加不成功。 待续 #四、抄录地址 [Memos Github仓库](https://github.com/usememos/memos "Memos Github仓库") [嘀咕(哔哔)Memos 简介](https://eallion.com/memos-deployment/ "嘀咕(哔哔)Memos 简介") 标签: memos