K8S主机环境配置(二)

wys 2020-06-18

# 安装补丁包
# yum install -y conntrack ipvsadm ipset jq iptables curl sysstat libsecomp wget net-tools git vim
# 禁用防火墙
# systemctl stop firewalld && systemctl disable firewalld
# yum -y install iptables-services && systemctl start iptables && systemctl enable iptables
# iptables -F && service iptables save #关闭SELINUX
# swapoff -a && sed -i ‘/swap/s/^\(.*\)$/#\1/g‘ /etc/fstab
# setenforce 0 && sed -i ‘s/^SELINUX=.*/SELINUX=disabled/‘ /etc/selinux/config

相关推荐

哥哥的CSDN集 / 0评论 2020-01-07