centos搭建个人网盘

安装Seafile

安装依赖环境

[root@localhost ~]# yum -y install python python-setuptools python-imaging python-ldap \
python-memcached MySQL-python mariadb mariadb-server

启动mariadb服务

[root@localhost ~]# systemctl start mariadb
[root@localhost ~]# systemctl enable mariadb

配置MySQL

[root@localhost ~]# /usr/bin/mysql_secure_installation
# 除以下两处其他默认回车,设置好自己密码
New password: 
Re-enter new password:

下载Seafile安装包

[root@localhost ~]# wget https://mc.qcloudimg.com/static/archive/3d8addbe52be88df4f6139ec7e35b453/seafile-server_5.1.4_x86-64.tar.gz

解压安装Seafile安装包

[root@localhost ~]# tar zxf seafile-server_5.1.4_x86-64.tar.gz 
[root@localhost ~]# mkdir -p /opt/seafile/installed
[root@localhost ~]# mv seafile-server_5.1.4_x86-64.tar.gz /opt/seafile/installed/
[root@localhost ~]# mv seafile-server-5.1.4/ /opt/seafile/
[root@localhost ~]# cd /opt/seafile/seafile-server-5.1.4/
[root@localhost seafile-server-5.1.4]# ./setup-seafile-mysql.sh
# 过程中出现的需要填写的信息,其他的按照默认回车即可
[ server name ] Seafile
[ This server's ip or domain ] hello.com
[ 1 or 2 ] 1
[ root password ]  # 输入上面准备好MySQL的密码

启动Seafile及修改防火墙规则

启动Seafile

[root@localhost seafile-server-5.1.4]# ./seafile.sh start
[root@localhost seafile-server-5.1.4]# ./seahub.sh start
# 登录网盘用户名,登录网盘密码,重复密码
[ admin email ] root@hello.com
[ admin password ] 
[ admin password again ]

修改防火墙规则

[root@localhost ~]# firewall-cmd --zone=public --permanent --add-port=8082/tcp
[root@localhost ~]# firewall-cmd --zone=public --permanent --add-port=8000/tcp
[root@localhost ~]# firewall-cmd --reload

验证

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

是空空呀

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值