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

646次阅读
没有评论

共计 2413 个字符,预计需要花费 7 分钟才能阅读完成。

简介

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

正文完
 0
水东柳
版权声明:本站原创文章,由 水东柳 2020-02-17发表,共计2413字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)