博主头像
NICHX

ワクワク

centos7安装seafile

下载
下载页面下载最新的服务器安装包.

部署和目录结构
注意: 如果你把 Seafile 文件放在一个外部存储的目录里(比如NFS,CIFS),你应该使用 MySQL 而不是 SQLite 来作为数据库。请参考下载和安装Seafile服务器(使用MySQL)。

假设你公司的名称为"haiwen",你也已经下载 seafile-server_1.4.0_* 到你的home 目录下。 我们建议使用这样的目录结构:

mkdir haiwen
mv seafile-server_* haiwen
cd haiwen

将 seafile-server_* 移动到 haiwen 目录下后

tar -xzf seafile-server_*
mkdir installed
mv seafile-server_* installed
现在,你的目录看起来应该像这样:

tree . -L 2

.
├── installed
│ └── seafile-server_1.4.0_x86-64.tar.gz
└── seafile-server-1.4.0

├── reset-admin.sh
├── runtime
├── seafile
├── seafile.sh
├── seahub
├── seahub.sh
├── setup-seafile.sh
└── upgrade

这样设计目录的好处在于

和 seafile 相关的配置文件都放在 haiwen 目录下,便于集中管理.
后续升级时,你只需要解压最新的安装包到 haiwen 目录下.
安装 Seafile 服务器
安装前的准备工作
安装 Seafile 服务器之前,请确认已安装以下软件

python 2.7
python-setuptools
python-imaging
python-ldap
python-urllib3
sqlite3

on CentOS 7

yum -y install epel-release
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm #官方步骤中没有这一步,直接安装会报错
yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel
pip install pillow moviepy
安装
cd seafile-server-*
./setup-seafile.sh #运行安装脚本并回答预设问题

启动 ./seafile.sh start

 ./seahub.sh start

记得防火墙需要开放端口

centos7安装seafile
https://blog.nichx.cn/index.php/archives/57/
本文作者 NICHX
发布时间 2019-06-21
许可协议 CC BY-NC-SA 4.0
发表新评论