seafile-pro-server-7.1.12网盘232用户

1684567148890.png

部署和目录设计

假设你已经下载 seafile-pro-server_*/opt/seafile目录下。 我们建议这样的目录结构:

mkdir  -p /opt/seafile/installed mv seafile-pro-server_* /opt/seafile/installed cd /opt/seafile/installed #将 seafile-pro-server_* 解压到 /opt/seafile 目录下tar -xzf seafile-pro-server_* -C /opt/seafileTextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift

现在,你的目录看起来应该像这样:

#tree seafile -L 2seafile├── installed│   └── seafile-pro-server_7.0.0_x86-64.tar.gz└── seafile-pro-server-7.0.0    ├── reset-admin.sh    ├── runtime    ├── seafile    ├── seafile.sh    ├── seahub    ├── seahub.sh    ├── setup-seafile-mysql.sh    └── upgradeTextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift

这样设计目录的好处在于

  • 和 seafile 相关的配置文件都可以放在 /opt/seafile/conf 目录下,便于集中管理.

  • 后续升级时,你只需要解压最新的安装包到 /opt/seafile 目录下.

安装 Seafile 专业版本服务器

安装前的准备工作

安装 Seafile 服务器之前,请确认已安装以下软件:

Seafile Pro 7.0.x 版本

# on Ubuntu 16.04apt-get updateapt-get install python2.7 python-setuptools python-mysqldb python-urllib3 python-ldap -yTextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift
# on CentOS 7yum install python python-setuptools MySQL-python python-urllib3 python-ldap -yTextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift

Seafile Pro 7.1.x 版本

# on Debian 10/Ubuntu 18.04/Ubuntu 20.04

apt-get update

apt-get install python3 python3-setuptools python3-pip python3-ldap libmysqlclient-dev  -y



pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.3.8 psd-tools \

django-pylibmc django-simple-captcha

# on CentOS 8

yum install python3 python3-setuptools python3-pip python3-ldap python3-devel gcc gcc-c++ -y



pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy==1.3.8 psd-tools \

django-pylibmc django-simple-captcha

Seafile Pro 8.0.x  版本

# on Debian 10/Ubuntu 18.04/Ubuntu 20.04

apt-get update

apt-get install python3 python3-setuptools python3-pip python3-ldap  libmysqlclient-dev  -y



pip3 install --timeout=3600 django==2.2.* future mysqlclient pymysql Pillow pylibmc \

captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha

# on CentOS 8

yum install python3 python3-setuptools python3-pip python3-ldap python3-devel mysql-devel gcc gcc-c++ -y



pip3 install --timeout=3600 django==2.2.* future mysqlclient pymysql Pillow pylibmc \

captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha

Seafile Pro 9.0.x  版本

# on Debian 10/Ubuntu 18.04/Ubuntu 20.04

apt-get update

apt-get install python3 python3-setuptools python3-pip python3-ldap libmysqlclient-dev -y



pip3 install --timeout=3600 django==3.2.* future mysqlclient pymysql Pillow pylibmc \

captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha \

pycryptodome==3.12.0 cffi==1.14.0 lxml

注意:Seafile Pro 9.0.x 版本不支持在 Centos 系统 tar 包部署,支持 Docker 方式部署

安装

cd seafile-pro-server-*./setup-seafile-mysql.sh  #运行安装脚本并回答预设问题TextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift

如果你的系统中没有安装上面的某个软件,那么 Seafile初始化脚本会提醒你安装相应的软件包.

该脚本会依次询问你一些问题,从而一步步引导你配置 Seafile 的各项参数:

在这里, 你会被要求选择一种创建 Seafile 数据库的方式:

-------------------------------------------------------

Please choose a way to initialize seafile databases:

-------------------------------------------------------



[1] Create new ccnet/seafile/seahub databases

[2] Use existing ccnet/seafile/seahub databases

  • 如果选择1, 你需要提供根密码. 脚本程序会创建数据库和用户。

  • 如果选择2, ccnet/seafile/seahub 数据库应该已经被你(或者其他人)提前创建。

如果安装正确完成,你会看到下面这样的输出 (新版本可能会有所不同)

#tree seafile -L 2seafile├── ccnet               # configuration files│   ├── mykey.peer│   ├── PeerMgr│   └── seafile.ini├── conf│   └── ccnet.conf│   └── seafile.conf│   └── seahub_settings.py│   └── gunicorn.conf├── installed│   └── seafile-pro-server_7.0.0_x86-64.tar.gz├── seafile-data├── seafile-pro-server-7.0.0  # active version│   ├── reset-admin.sh│   ├── runtime│   ├── seafile│   ├── seafile.sh│   ├── seahub│   ├── seahub.sh│   ├── setup-seafile-mysql.sh│   └── upgrade├── seafile-server-latest  # symbolic link to seafile-server-7.0.0├── seahub-data│   └── avatarsTextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift

seafile-server-latest文件夹为指向当前 Seafile 服务器文件夹的符号链接. 将来你升级到新版本后, 升级脚本会自动更新使其始终指向最新的 Seafile 服务器文件夹.

启动 Seafile 服务

在 seafile-server-latest 目录下,运行如下命令

  • 启动 Seafile

  ./seafile.sh start # 启动 Seafile 服务  TextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift
  • 启动 Seahub

 ./seahub.sh start  # 启动 Seahub 网站 (默认运行在127.0.0.1:8000端口上)TextHTMLCSSJavascriptCC++C#JavaPythonSqlSwift

你第一次启动 seahub 时,seahub.sh 脚本会提示你创建一个 seafile 管理员帐号。

注意:7.0.x 版本之后,8000端口默认监听在127.0.0.1地址上,这意味着您无法直接通过8000端口访问Seafile服务。建议您配置nginx反向代理。

恭喜! 现在你已经成功的安装了 Seafile 服务器.


1、本站目前拥有近 1000+ 精品收费资源,现在加入VIP会员即可全部下载。
2、本资源部分来源其他付费资源平台或互联网收集,如有侵权请联系及时处理。
SEA模板网 » seafile-pro-server-7.1.12网盘232用户

加入本站VIP会员订阅计划,海量资源免费查看

目前为止共有 3654 位优秀的VIP会员加入! 立刻加入VIP会员