搭建个人网盘

在这个数据爆炸的时代,大部分人已经离不开个人云存储---网盘,但是遗憾的是大多数网盘陆续停止了服务。

一、准备域名

域名解析(我是在阿里云设置的)


测试

二、安装 Seafile

安装依赖,使用 yum 安装 Python 及 MySQL、启动 MariaDB 服务、配置 MySQL

yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server

systemctl start mariadb.service && systemctl enable mariadb.service

/usr/bin/mysql_secure_installation
image

安装 Seafile

wget https://mc.qcloudimg.com/static/archive/3d8addbe52be88df4f6139ec7e35b453/seafile-server_5.1.4_x86-64.tar.gz

tar -zxvf seafile-server_5.1.4_x86-64.tar.gz

mkdir -p /opt/seafile/installed

mv seafile-server_5.1.4_x86-64.tar.gz /opt/seafile/installed

mv seafile-server-5.1.4/ /opt/seafile

cd /opt/seafile/seafile-server-5.1.4

./setup-seafile-mysql.sh

image

image

完成

三、启动 Seafile 及修改防火墙规则

启动 Seafile

./seafile.sh start

./seahub.sh start
image

修改防火墙规则

firewall-cmd --zone=public --permanent --add-port=8082/tcp

firewall-cmd --zone=public --permanent --add-port=8000/tcp

firewall-cmd --reload
image

访问 IP 或 域名

firefox http://192.168.0.11:8000

firefox http://abc.youadminwen.com:8000
登录页面

登录页面

网盘搭建完成
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容