7.5模板机

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 ======================================================

优化网卡ifcfg-ens32

vi /etc/sysconfig/network-scripts/ifcfg-ens32

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens32
UUID=f0f226c9-dd1b-45e5-8915-8569618685fe
DEVICE=ens32
ONBOOT=yes

-----------------------------------------------------------------

修改完成后重启网卡生效

[root@localhost ~]# systemctl restart network    #重启所有网卡

========================================================

 关闭selinux

[root@localhost ~]# getenforce
Enforcing
[root@localhost ~]# setenforce Permissive
[root@localhost ~]# getenforce           
Permissive
[root@localhost ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
[root@localhost ~]# reboot
[root@localhost ~]# getenforce
Disabled

关闭NetworkManager和防火墙开机自启动

[root@localhost ~]# systemctl disable firewalld
[root@localhost ~]# systemctl stop firewalld
[root@localhost ~]# systemctl disable NetworkManager

安装常用的软件包

yum install -y vim net-tools wget lrzsz tree screen lsof tcpdump nc \
mtr nmap telnet dos2unix sysstat nc nmap zip unzip ntpdate


克隆虚拟机

 

 

centos 7关机方法
1、init 0
2、shutdown -h now
备注:halt(centos7无效,centos6有效)






posted @ 2020-03-01 23:50  Mr丶苏炎  阅读(73)  评论(0)    收藏  举报