一、准备工作
1.1 安装wget、vim
yum install -y wget vim
1.2 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
二、部署seafile
2.1 安装mysql/mariadb
# 选择安装mariadb
yum -y install mariadb mariadb-server
# 启动、开机启动
systemctl start mariadb
systemctl enable mariadb
# 安全设置
mysql_secure_installation
# 根据下面的内容进行设置
# 第一次运行密码为空,回车。
Enter current password for root (enter for none):
# 需要设置root密码,输入y后回车。
Set root password? [Y/n] y
接着输入两次新密码。
# 是否删除匿名用户,回车。
Remove anonymous users? [Y/n]
# 是否禁止root远程登录,回车。
Disallow root login remotely? [Y/n]
# 是否删除test数据库,回车。
Remove test database and access to it? [Y/n]
# 是否重新加载权限表,回车。
Reload privilege tables now? [Y/n]
# 使用root账户登录mariadb
mysql -uroot -p
# 能连得进去说明刚才的设置已经生效
# 退出mariadb
exit
PS.如果需要远程连接,可以用下面的内容设置。
# 允许任意ip使用root远程连接
create user 'root'@'%' identified by 'root远程登录的密码';
# 添加权限给该root
grant all privileges on *.* to 'root'@'%' identified by 'root远程登录的密码';
# 配置立即生效
flush privileges;
Python的pip安装源切换为国内阿里云镜像
pip install xxx -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
清理缓存
rm -rf /tmp/seahub_cache/*
https://www.cnblogs.com/witz/p/13048203.html