利用seafile创建个人服务器云盘

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bolvtin/article/details/82711379


安装参考网址
https://github.com/haiwen/seafile-server-installer-cn


1. 切换成 root 账号 (sudo -i)

2. 获取seafile安装包
下载地址
https://www.seafile.com/en/download/
Server for generic Linux
6.2.5 64bit  我安装的是6.2.5


3. 获取安装脚本

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


4. 运行安装脚本并指定要安装的版本 (6.2.5)

bash seafile-server-ubuntu-16-04-amd64-http 6.2.5

脚本会让你选择要安装的版本, 按照提示进行选择即可:
1是社区版本
2是专业版本
我安装的是社区版本

该脚本运行完后会在命令行中打印配置信息和管理员账号密码,请仔细阅读。(你也可以查看安装日志 /opt/seafile/aio_seafile-server.log),MySQL 密码在 /root/.my.cnf 中。

5. 安装完成后,您需要通过 Web UI 服务器进行基本的配置,以便能正常的从网页端进行文件的上传和下载:

首先在浏览器中输入服务器的地址,并用管理员账号和初始密码登录
点击界面的右上角的头像按钮进入管理员界面

虽然已经有1个管理员账户了,但是最好还是添加一个普通用户
设置邮箱和密码

6. 使用浏览器直接浏览
在浏览器中输入服务器的地址就好了

以下的客户端可以安装也可以不安装-因为用浏览器浏览就可以的
7. 安装客户端
参考网址
https://help.seafile.com/en/syncing_client/install_linux_client.html
sudo add-apt-repository ppa:seafile/seafile-client
sudo apt-get update
sudo apt-get install seafile-gui
安装结束后可以在ubuntu的dash中找到seafile这个软件

8. 使用客户端
参考网址
https://help.seafile.com/en/syncing_client/install_sync.html
https://www.seafile.com/help/seadrive/setting/

使用服务器和管理员维护参考
https://manual-cn.seafile.com/maintain/
https://help.seafile.com/zh/

如果出现以下错误
pip安装python包出现Cannot fetch index base URL http://pypi.python.org/simple/
参考网址
https://blog.csdn.net/xujian0000abcd/article/details/50497456
解决办法

1.windows下创建/%user%/pip/pop.ini,并添加以下内容。

[global]  
index-url=http://pypi.douban.com/simple/


2.linux创建文件~/.pip/pip.conf,并添加一下内容。


[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host = pypi.douban.com

如果出现以下错误

src/_pylibmcmodule.h:41:20: fatal error: Python.h: No such file or director
$ sudo apt-get install python-dev

因为seafile必须把资料上传到seafile本身的目录里,所以会出现硬盘不足的情况,因此必须在安装seafile之前就把硬盘的lvm或者btrfs做好。
因为seafile上传文件是到/opt/seafile/seafile-data目录下 所以需要把这个目录放到另外的硬盘里 然后在/opt/seafile目录下建立seafile-data目录的软链接
这样不至于使得/这个根目录的空间越来越小
参考网址
https://bbs.seafile.com/t/seafile/509/3
// 可以参考的博客
https://post.smzdm.com/p/525124/

猜你喜欢

转载自blog.csdn.net/bolvtin/article/details/82711379