树莓派搭建Seafile个人网盘
步骤一、安装Seafile依赖包
yum install python-setuptools python-ldap python-memcached MySQL-python mariadb mariadb-server
步骤二、安装pip和python库
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install requests
步骤三、配置mariadb数据库
启动 mariadb服务:
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
配置 mariadb:
/usr/bin/mysql_secure_installation
#New password 和 Re-enter new password 字段都设置为 Password,其他字段一路回车使用默认值
步骤四、安装Seafile网盘程序(一定要下载树莓派版本,其他版本是没办法运行的)
下载Seafile网盘:
wget https://github.com/haiwen/seafile-rpi/releases/download/v6.3.2/seafile-server_6.3.2_stable_pi.tar.gz
创建Seafile网盘文件夹:
mkdir -p /data/pan
mv seafile-server_* /data/pan
cd /data/pan
tar -xzf seafile-server_*
mkdir installed
mv seafile-server_* installed
这样设计目录的好处在于
1.和 seafile 相关的配置文件都可以放在 pan 目录下,便于集中管理.
2.后续升级时,你只需要解压最新的安装包到 pan 目录下.
安装Seafile网盘:
cd seafile-server-*
./setup-seafile-mysql.sh
[server name] 字段输入 Seafile,[ This server's ip or domain ] 字段输入域名或服务器公网IP地址,
[ 1 or 2 ] 字段选择 1,mysql 的 [ root password ] 字段输入 Password,其他字段一路回车使用默认值
启动 Seafile 服务器:
./seafile.sh start
./seahub.sh start
修改防火墙规则:
sudo firewall-cmd --zone=public --permanent --add-port=/tcp
sudo firewall-cmd --zone=public --permanent --add-port=/tcp
sudo firewall-cmd --reload
大功告成!
恭喜,您的 Seafile 已经部署完成,您现在拥有专属的网盘了,登录的帐号密码为您启动 Seafile 步骤中设置的邮箱和密码。
可以通过 IP访问网盘:http://<您的域名>:8000
可以通过域名访问网盘:如 http://www.yourdomain.com:8000 ,其中 www.yourdomain.com 替换为您注册的域名
参考文献:
腾讯云:https://cloud.tencent.com/developer/labs/lab/10093
科技爱好者:http://blog.lxx1.com/1420
seafile官方文档:https://manual-cn.seafile.com/deploy/using_mysql.html
树莓派搭建Seafile个人网盘的更多相关文章
- 搭建 Seafile 专属网盘
准备域名 任务时间:15min ~ 20min 域名注册 如果您还没有域名,可以在腾讯云上选购,过程可以参考下面的视频. 视频 - 在腾讯云上购买域名 域名解析 域名购买完成后, 需要将域名解析到实验 ...
- 基于CentOS 搭建 Seafile 专属网盘
系统要求:CentOS 7.2 64 位操作系统 安装 Seafile 安装依赖环境 使用 yum 安装 Python 及 MySQL: yum install python python-setup ...
- 基于Ubuntu搭建Seafile专属网盘
系统要求: Ubuntu 16.04.1 LTS 64 位操作系统 安装 Seafile 服务器 安装依赖环境 在 Debian/Ubuntu 系统下,可以使用以下命令安装 MySQL: sudo a ...
- 基于 CentOS 搭建Seafile个人网盘
一.安装 Seafile 安装依赖环境使用 yum 安装 Python 及 MySQL: yum install python python-setuptools python-imaging pyt ...
- Centos搭建Seafile个人网盘
1.安装依赖环境 yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-pyth ...
- seafile私有网盘搭建
各种公有网盘确实很方便,但总有些特殊情况不是? 闲来无聊准备自己搭建一个私有网盘,也让自己的闲置的服务器好好利用一下 搜索一番,找到了专业户seafile 一顿操作,踩了无数大坑,特此总结一下 1.c ...
- ubuntu服务器 安装 seafile 个人网盘
目录 ubuntu服务器 安装 seafile 个人网盘 一.实验环境: 二.实验流程介绍 三.网盘搭建 1.安装依赖环境 2.安装seafile 三.配置QQ域名邮箱 四.配置seafile邮件服务 ...
- CentOS7下一键小白搭建seafile pro云盘
搭建前准备工作 vps或者云服务器,个人搭建使用建议腾讯云,公司搭建使用建议阿里云. 没有服务器的小伙伴可以下面链接进入看下,腾讯云的配置带宽会比阿里云的好点. 阿里云新人优惠服务器 腾讯云云上特惠 ...
- Centos7.x部署SeaFile私有网盘
1.安装依赖环境 yum -y install wge gcc-c++ .......... 2.关闭Firewalld防火墙和SElinux systemctl stop firewalld sys ...
随机推荐
- bzoj4145 [AMPPZ2014]The Prices(状压dp)
Description 你要购买m种物品各一件,一共有n家商店,你到第i家商店的路费为d[i],在第i家商店购买第j种物品的费用为c[i][j], 求最小总费用. Input 第一行包含两个正整数n, ...
- java 强大的反射机制
这段时间,在对接一个开源的版本时,发现由于依赖的开源版本api老是随着版本的变化而变化,导致代码经常需要修改,异常痛苦. 终于,在一个风和日丽的下午(五月末的广州异常暴晒),楼主下定决心要修掉这个大篓 ...
- 定位,标记,Socket通信传输位置
# -*- coding: utf- -*- """ Editor : X-POWER Date : -- Motto : talk is cheap,show me y ...
- AtCoder Grand Contest 012 B
B - Splatter Painting Time limit : 2sec / Memory limit : 256MB Score : 700 points Problem Statement ...
- Angular4项目,默认的package.json创建及配置
1.使用如下命令,可以创建一个默认的 package.json npm init 创建后如下图所示: 添加 angular4 的 dependencies: npm install@ ...
- 转-sql之left join、right join、inner join的区别
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只 ...
- python函数基础(3)
第1章 编码补充 1.1 字符编码对照表 1.2 编码特性 1.4 encode/decode第2章 集合 2.1 特点 2.2 [重点]作用:去重 2.3 常用操作 2.3.1 删除 2.3.2 交 ...
- 什么是极坐标? —— 一点微小的想法 What is Polar Coordinate ? - Some Naive Thoughts about It
Can you answer these three questions? The answer seems to be trivial, since we can use our eyes to o ...
- 外文翻译 《How we decide》多巴胺的预言 第二节
本节阅读感言:一朝被蛇咬,十年怕井绳.我们的大脑时刻跟新着本体的预测机制. 上一节提到的喇叭,苹果汁实验可以不断的延伸扩展,在播放喇叭前用强光照射...强光照射前放置特定的图片...都可以扩展多巴胺相 ...
- PKU_campus_2018_A Wife
思路: 题目链接http://poj.openjudge.cn/practice/C18A/ 先说一个结论,每一天要么7要么0,由此提供一种状态压缩dp的解法. 实现: #include <bi ...