第一步,安装依赖环境,mariadb
yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server -y
第二步,重启mariadb服务
systemctl start mariadb.service
systemctl enable mariadb.service
第三步,配置mariadb,设置数据库密码
/usr/bin/mysql_secure_installation
第四步,下载并安装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
第五步,配置seafile
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
./seafile.sh start
./seahub.sh start
第六步,防火墙配置
systemctl restart firewalld
systemctl enable firewalld
firewall-cmd --zone=public --permanent --add-port=8082/tcp
firewall-cmd --zone=public --permanent --add-port=8000/tcp
firewall-cmd --reload
第七步,测试
浏览器输入域名或http://ip:端口
原文地址:https://blog.51cto.com/11293100/2481693