安装好centos7后,最好先更新一下系统
yum upgrade
安装mysql
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
这一步请耐心等待,中国访问慢,如果中途失败,再次运行下面命令(可断点续传)
yum install mysql-community-server
启动mysql
service mysql restart
重置mysql密码(这里重置的密码待会安装seafile的时候要用)
mysql -u root
use mysql;
update user set password=password(‘123456’) where user=‘root’;
exit
关闭centos7防火墙(不然8000端口访问可能有问题)
停止firewall
systemctl stop firewalld.service
禁止firewall开机启动
systemctl disable firewalld.service