18.04 Seafile-Sever 7.1.5 安装

曾经安装过很多次Seafile,现在又要重新开始部署了;今天简要记录一下,作为以后的参考;

linux 下sqlite3 部署:https://cloud.seafile.com/published/seafile-manual-cn/deploy/using_sqlite.md

7.1.x 部署参考:https://cloud.seafile.com/published/seafile-manual-cn/upgrade/upgrade_notes_for_7.1.x.md

部署命令:

apt-get install python3 python3-setuptools python3-pip -y
pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy django-pylibmc django-simple-captcha python3-ldap
mkdir haiwen
mv seafile-server_* haiwen
cd haiwen
#将 seafile-server_* 移动到 haiwen 目录下后
tar -xzf seafile-server_*
mkdir installed
mv seafile-server_* installed
cd seafile-server-*
./setup-seafile.sh  #运行安装脚本并回答预设问题

启动命令:

run seafile server:     ./seafile.sh { start | stop | restart }
run seahub  server:     ./seahub.sh  { start <port> | stop | restart <port> }

错误纠正:

在安装文件夹中找到conf文件夹,编辑 gunicorn.conf.py修改bind = 127.0.0.1;为 0.0.0.0
ln -s /root/seafile-data/seafile_server/seafile-server-latest/seafile.sh seafile.sh
ln -s /root/seafile-data/seafile_server/seafile-server-latest/seahub.sh seahub.sh

当更换服务器后,最好安装最新的客户端;

保持更新;

posted @ 2021-01-27 14:27  "Michael_Xu"  阅读(412)  评论(0编辑  收藏  举报