CentOS7_Ubuntu16.04安装seafile企业云盘(开心版)

简介

Seafile 是一个开源的文件云存储平台,解决文件集中存储、同步、多平台访问的问题,注重安全和性能。

Seafile 通过“资料库”来分类管理文件,每个资料库可单独同步,用户可加密资料库, 且密码不会保存在服务器端,所以即使是服务器管理员也无权访问你的文件。

Seafile 允许用户创建“群组”,在群组内共享和同步文件,方便了团队协同工作。

软件许可协议

Seafile 及其桌面、移动客户端遵循 GPLv3。

Seahub(Seafile 服务器的 web 端)遵循 Apache License。

关于

本手册“源码”托管在Github https://github.com/haiwen/seafile-docs-cn

部署

需要准备一台3核心的VPS,VPS 内存+Swap虚拟内存 至少3G,最好4G以上;若是嫌虚拟内存还是太小用如下命令增大虚拟内存(以新增1G虚拟内存为例,若需要增加2G虚拟内存,则count=2048):

dd if=/dev/zero of=/swapfile count=1024 bs=1Mm
kswap /swapfile
swapon /swapfile

加入开机启动

vi /etc/fstab

按i 进入编辑模式,在文件最后加入下面这行命令

/swapfile  swap  swap  defaults  0  0

按Esc 退出编辑模式,输入  :wq!   回车 保存并退出。

用CentOS 7 & Ubuntu 16.04(注意:非精简linux系统),VPS SSH 的用户名 禁止使用seafile,否则 安装过程中 会显示报错:useradd:用户“seafile”已存在。

VPS 先装上BBR加速(BBR Plus加速脚本):

wget "https://github.com/chiakge/Linux-NetSpeed/raw/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

按2 安装bbr plus内核,重启后,按7 开启bbr plus加速

以上是安装前的准备,下面开始安装:

CentOS 7 (64bit):

sudo -i
cd /opt
wget http://75519.d.yyupload.com/down/75519/apk/seafile-pro-server_6.2.9_x86-64.tar.gz

wget http://thomas0008.best:80/f/b5f74f1f019346919f4d/?dl=1 后,改名为 seafile-pro-server_6.2.9_x86-64.tar.gz

wget http://75519.d.yyupload.com/down/75519/apk/seafile-server-centos-7-amd64-http

wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-centos-7-amd64-http
bash seafile-server-centos-7-amd64-http 6.2.9

选2 安装pro 专业版

********************************************************

Ubuntu 16.04/18.04 (64bit):

sudo -i
cd /opt
wget http://75519.d.yyupload.com/down/75519/apk/seafile-pro-server_6.2.9_x86-64.tar.gz

wget http://thomas0008.best:80/f/b5f74f1f019346919f4d/?dl=1 后,改名为 seafile-pro-server_6.2.9_x86-64.tar.gz
wget http://75519.d.yyupload.com/down/75519/apk/seafile-server-ubuntu-amd64-http

wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-ubuntu-amd64-http

bash seafile-server-ubuntu-amd64-http 6.2.9

选2 安装pro 专业版

*********************************************************

上述装完后 注意记下        SSH界面中 类似下面的账号密码

Seafile Admin:       admin@seafile.local

Admin Password:      Eed6iqui

登陆 http://服务器IP        #访问其80端口,即可登陆网站。

上述安装完毕后,虽然在 系统管理-信息-并无 显示用户数限制与注册信息,但实际上是已经可以新增注册用户超过3用户,突破官方原限制。

设置 FILE_SERVER_ROOT,开启上传、下载功能:

1)将 FILE_SERVER_ROOT字段 由

http://127.0.0.1:seafhttp

改为

http://服务器的IP或域名:seafhttp

2)将 用户 下面 的该3项  勾选开启:

允许用户注册

注册后激活

发送激活邮件

3)将 SERVICE_URL字段 由

http://127.0.0.1:8000

改为

http://服务器的IP或域名:80

***************************************************

(至此 安装调试全部完成,官方演示网址:https://demo.seafile.top/demo)

来源:https://www.hostloc.com/thread-645177-1-1.html

版权声明:
作者:水东柳
链接:https://shuidl.com/2514.html
来源:水东柳博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
< <上一篇
下一篇>>