运维笔记--centos7--系统优化

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

扫描二维码关注公众号,回复: 4829273 查看本文章

查看状态: systemctl status firewalld 

开机禁用  : systemctl disable firewalld

开机启用  : systemctl enable firewalld

更多可以参见https://blog.csdn.net/kxwinxp/article/details/78895373 懒得自己码字了。

猜你喜欢

转载自blog.csdn.net/m0_37574578/article/details/85240131