惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

王鑫的小屋

AI写小说基本思路探讨 - 王鑫的小屋 这个月忙着自娱自乐 - 王鑫的小屋 Linux挂载硬盘教程(Steps to mount a partition in Linux) - 王鑫的小屋 白银暴跌,又一次见证了历史 - 王鑫的小屋 2026年我的信用卡持卡计划 - 王鑫的小屋 北京首都国际机场贵宾楼使用攻略 - 王鑫的小屋 全网首发,西安咸阳国际机场T5贵宾楼使用攻略 - 王鑫的小屋 吐血,节前机票价格又跳水了 - 王鑫的小屋 最近的大A有点意思,记录下 - 王鑫的小屋
搭建seafile服务端,修改文件存储目录 - 王鑫的小屋
admin · 2026-03-02 · via 王鑫的小屋

办公电脑一直用的是基于Debain的统信UOS系统,市面上常用的同步盘都不好用(超过200G以上的太贵),于是自己搭建了Nextcloud,用了一年半,还行。

年前,又一次升级了Nextcloud的服务端,结果统信系统软件商城里的客户端版本太老,不再适配新版服务端;将服务端重装回老版本,但是奇怪的是,家里的电脑可以正常同步;办公电脑可以连接,但同步一直出错,找不到原因。

无奈,只好另寻同类软件。

发现统信的软件商城里有Seafile客户端,而且更新及时!立马开始布置服务端,半个小时就弄好了,用起来真香!

服务器我用的是GreencloudVPS的大盘鸡,20G系统盘+1T数据盘。Seafile默认安装,就存在将存储目录修改到数据盘的操作。因为不懂代码,记录下过程,方便下次操作。

注:Seafile采用默认安装,存储目录默认为/opt/seafile-data,计划将存储目录迁至挂载盘/data/seafile-data下,root用户运行。

1.停止Seafile容器
docker stop seafile

2.将/opt/seafile-data下所有文件复制到/data/seafile-data

3.设置文件权限
由于容器以root运行,只需确保目录对root可读写
chown -R root:root /data/seafile-data
chmod -R 755 /data/seafile-data

特殊目录需要额外权限
chmod -R 777 /data/seafile-data/logs
chmod -R 777 /data/seafile-data/seafile-data
chmod -R 777 /data/seafile-data/seahub-data

4.修改配置文件
打开/opt/seafile,找到.env,将SEAFILE_VOLUME值修改如下:
SEAFILE_VOLUME=/data/seafile-data

打开/opt/seafile,找到seafile-server.yml,将SEAFILE_VOLUME值修改如下:
${SEAFILE_VOLUME:-/data/seafile-data}:/shared

5.重启容器
停止并删除容器
docker-compose -f seafile-server.yml down

重新启动
docker-compose -f seafile-server.yml up -d

6.测试路径
打开Seafile网页端,上传一个大文件,测试是否占用数据盘。我测试是成功了。