1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| # 关闭 selinux $ sudo vim /etc/selinux/config SELINUX=enforcing -> SELINUX=disabled $ sudo setenforce 0
# 关闭 swap $ sudo vim /etc/fstab 注释掉行 /dev/mapper/centos-swap
# 关闭防火墙 $ systemctl stop firewalld $ systemctl disable firewalld
# 设置 DNS # centos 8 $ vim /etc/resolve.conf nameserver 192.168.6.1 # 或其他
|