SeaFile简介
Seafile 是一款开源的企业云盘,注重可靠性和性能。支持 Windows, Mac, Linux, iOS, Android 平台。支持文件同步或者直接挂载到本地访问。
SeaFile特性
主要功能
1、文件同步与共享
你可以创建不同的资料库来分类组织文件。可以在私人间或群组中共享这些资料库。每个资料库都可以选择性的在多台设备上同步。
2、在线协作
你可以在线编辑文件,对文件进行评论,在私人间或群组间展开讨论。事件通知、版本管理使得文件协作异常的方便和安全。
3、移动办公
移动客户端使得你可以在移动设备上查看最新改动、访问文件资料、进行群组讨论等等,方便的完成移动办公。
安装部署(基于MySQL)
1、下载最新安装包,官方网站:https://www.seafile.com/download/
2、部署和目录设计
将安装包解压后,重命名为seafile,并移动至数据目录即可
3、安装前准备软件
- MariaDB 或者 MySQL 服务器 (MariaDB 是 MySQL 的分支)
- python 2.7 (从 Seafile 5.1 开始,python 版本最低要求为2.7)
- python-setuptools
- python-imaging
- python-mysqldb
- python-ldap
- python-urllib3
- python-memcache (或者 python-memcached)
# on Debian/Ubuntu 14.04 server
apt-get update apt-get install python2.7 libpython2.7 python-setuptools python-imaging \ python-ldap python-mysqldb python-memcache python-urllib3
# on Ubuntu 16.04 server
# As the default python binary on Ubuntu 16.04 server is python 3, we need to install python (python 2) first. apt-get update apt-get install python apt-get install python2.7 libpython2.7 python-setuptools python-imaging python-ldap python-urllib3 ffmpeg python-pip python-mysqldb python-memcache pip install pillow moviepy
# on CentOS 7
yum -y install epel-release rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro yum -y install python-imaging MySQL-python python-memcached python-ldap python-urllib3 ffmpeg ffmpeg-devel pip install pillow moviepy
4、进入seafile目录,执行命令开始安装
cd seafile-s ./setup-seafile-mysql.sh #运行安装脚本并回答预设问题
如果你的系统中没有安装上面的某个软件,那么 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 数据库应该已经被你(或者其他人)提前创建。
如果安装正确完成,你会看到下面这样的输出 (新版本可能会有所不同)
创建完成如下图
启动Seafile服务器
启动 Seafile 服务器和 Seahub 网站
在 seafile目录下,运行如下命令
- 启动 Seafile:
<code>./seafile.sh start # 启动 Seafile 服务 </code>
- 启动 Seahub
<code>./seahub.sh start <port> # 启动 Seahub 网站 (默认运行在8000端口上) </code>
seahub.sh
脚本会提示你创建一个 seafile 管理员帐号。服务启动后, 打开浏览器并输入以下地址
<code>http://pan.cloudcared.cn:8000/ </code>
你会被重定向到登陆页面. 输入管理员用户名和密码即可。
用python写的呀。
@晴和君 还不错,做个个人网盘挺实用
Good software赞