seafile+glusterfs 安装部署

今天在虚拟机上搭一下seafile,用于测试环境。此处安装的是社区免费版本的,可以使用一键自动安装(MySQL适用)。

官方文档:https://manual-cn.seafile.com/

1.一键安装脚本并使用

安装过程根据个人需求选择

1 获取脚本:wget https://raw.githubusercontent.com/haiwen/seafile-server-installer-cn/master/seafile-server-centos-7-amd64-http
2 安装,根据软件版本安装 # bash seafile-server-centos-7-amd64-http 6.2.5

真他么简单,完事了。。。

2.部署glusterfs,作为seafile存储

2.1 热添加硬盘

echo "- - -" >/sys/class/scsi_host/host0/scan 

2.2 根据官网来安装

格式化并迅速安装

mkfs.xfs -i size=512 /dev/sdb
mkdir -p /data/brick1
echo '/dev/sdb /data/brick1 xfs defaults 1 2' >> /etc/fstab
mount -a && mount

2.3 软件安装

yum install centos-release-gluster(glusterfs源) glusterfs-server glusterfs glusterfs-fuse glusterfs-rdma -y

2.4 下面都是搬砖的活,这里就不CV了

3.修改seafile存储空间为glusterfs存储

mkdir /seafile_data/seafile-data -p
mount -t glusterfs zklf-server01:/gv0 /seafile_data/
cd /opt/seafile/ccnet
echo "/seafile_data/seafile-data" > seafile.ini 
systemctl restart seafile
systemctl restart seahub

4.手动添加一个管理用户

bash /opt/seafile/seafile-server-6.2.5/reset-admin.sh 
自行输入一个邮箱就行了,这里要一个真实的邮箱,后期升级专业版就不费劲了

5.重启seafile

systemctl restart seafile
systemctl restart seahub

网页测试,诶,舒服

 

posted @ 2018-12-24 16:55  恶灵酒  阅读(364)  评论(0编辑  收藏  举报