环境要求
- Centos7
- 10.3.9
注意事项
- 如果是最小版本安装的centos7系统,需要先安装防火墙管理工具
yum install -y net-tools
- 查看防火墙状态(Active: inactive (dead))
systemctl status firewalld.service
- 如果提示(Active: active (running)),关闭防火墙
systemctl stop firewalld.service
- 关闭 SELinux
vi /etc/selinux/config # 将该文件中的 SELINUX 修改为 disabled 状态
- 安装编译工具(新机器一般都需要,编译软件需要依赖的包)
yum -y install gcc gcc-c++ ncurses ncurses-devel bison libgcrypt perl make cmake
环境搭建
- 查看默认数据库配置文件
find -H /etc/ | grep my.c
- 删除默认的数据库配置
rm -rf /etc/my.cnf /etc/my.cnf.d/
- 再次查看默认配置</