操作系统:AnolisOS-8.10 mysql版本:mysql-5.7.44-linux-glibc2.12-x86_64.tar.gz 准备篇 1、关闭SELINUX #AnolisOS-8.10默认是关闭的,可以不用操作 vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq! #保存退出 setenforce 0 #使配置立即生效 2、开启防火墙 系统默认使用的是firewall作为防火墙,这里改为iptables防火墙。 开启mysql默认端口3306 2.1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2.2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you [...]
查看全文