需要准备一台3核心的VPS VPS 内存+Swap虚拟内存 至少3G,最好4G以上;若是嫌虚拟内存还是太小用如下命令增大虚拟内存(以新增1G虚拟内存为例,若需要增加2G虚拟内存,则count=2048): dd if=/dev/zero of=/swapfile count=1024 bs=1M mkswap /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)