首先下载seafile服务端
seafile软件下载地址
配套sqlite3安装
安装python包
sudo apt update
sudo apt install python3 python3-pip python3-wheel python3-ldap
sudo apt install sqlite3
在seafile安装包的seahub文件夹内有依赖需求,requirements.txt
将其中的mysqlclient删除
使用pip3安装依赖包
pip3 install --user -r seahub/requirements.txt
ps:使用–user指令将依赖包安装于当前用户下,防止和系统级软件包冲突
将安装的依赖包复制到seahub/thirdpart中
mv -bf ~/.local/lib/python3.8/site-packages/* /home/work/seafile/seafile-server-8.0.5/seahub/thirdpart
安装
cd seafile-server-*
./setup-seafile.sh #运行安装脚本并回答预设问题
启动 Seafile 服务器和 Seahub 网站
启动 Seafile:
./seafile.sh start # 启动 Seafile 服务
启动 Seahub
./seahub.sh start # 启动 Seahub 网站 (默认运行在8000端口上)