1.安装依赖环境
yum install python python-setuptools python-imaging python-ldap python-memcached MySQL-python mariadb mariadb-server
2.启动服务
sudo systemctl start mariadb.service sudo systemctl enable mariadb.service
3.配置MySQL
/usr/bin/mysql_secure_installation
4.安装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
sudo mkdir -p /opt/seafile/installed
sudo mv seafile-server_5.1.4_x86-64.tar.gz /opt/seafile/installed
sudo mv seafile-server-5.1.4/ /opt/seafile
cd /opt/seafile/seafile-server-5.1.4
sudo ./setup-seafile-mysql.sh
5.启动Seafile
sudo ./seafile.sh start sudo ./seahub.sh start
6.修改防火墙规则
sudo firewall-cmd --zone=public --permanent --add-port=8082/tcp sudo firewall-cmd --zone=public --permanent --add-port=8000/tcp sudo firewall-cmd --reload
至此安装结束
此文参考腾讯云文章