nmtui--图形化界面配置网卡。这里需要注意,通过show这里来配置ip4配置,同时第一项的maual为配置staticIP。
linux优化:
首先安装一下必备的软件
yum install lrzsz nmap tree dos2unix nc -y
1、关闭selinux
sed -i 's/SELINUX=enforcing/SELINUX=DISABLED/' /etc/selinux/config
grep SELINUX=disabled /etc/selinux/config
setenforce 0
2,关闭防火墙
启动: systemctl start firewalld
关闭: systemctl stop firewalld
查看状态: systemctl status firewalld
开机禁用 : systemctl disable firewalld
开机启用 : systemctl enable firewalld
更多可以参见https://blog.csdn.net/kxwinxp/article/details/78895373 懒得自己码字了。