标签:iptables 操作系统 192.168 repo systemctl yum install docker 安装
1)操作系统
centos7版本系统,最小化安装
2)vmware net模式
IP配置 需要配置DNS,不然不能ping通域名
TYPE=Ethernet BOOTPROTO=static NAME=ens33 UUID=ab5bdcb8-4a71-473c-856d-c1e6a2b8b326 DEVICE=ens33 ONBOOT=yes IPADDR=192.168.40.180 NETMASK=255.255.255.0 GATEWAY=192.168.40.2 DNS1=192.168.40.2
3)安装阿里源
cd /etc/yum.repos.d/ mkdir bak mv *.repo bak wget http://mirrors.aliyun.com/repo/Centos-7.repo yum repolist
4)补安装tab提示功能
yum -y install bash-completion
5)系统优化
A)设置主机名 hostnamectl set-hostname master1 && bash B)关闭防火墙 service iptables stop && systemctl disable iptables yum install iptables-services -y service iptables stop && systemctl disable iptables iptables -F C)selinux关闭 /etc/selinux/config SELINUX=disabled getenforce D)对时 yum install -y ntp ntpdate crontab -e * */1 * * * /usr/sbin/ntpdate cn.pool.ntp.org systemctl restart crond
标签:iptables,操作系统,192.168,repo,systemctl,yum,install,docker,安装 来源: https://www.cnblogs.com/shisanjun2008/p/16272469.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。