重啟網(wǎng)卡命令:
nmcli connection reload ens33 后接網(wǎng)卡名稱
查看防火墻狀態(tài):
systemctl status firewalld.service
關(guān)閉防火墻:
systemctl stop firewalld.service
開啟防火墻
systemctl start firewalld.service
禁止防火墻開機(jī)啟動(dòng):
systemctl disable firewalld.service
防火墻開機(jī)自啟動(dòng):
systemctl enable firewalld.service
添加中文語(yǔ)言包(解決 vi 中文亂碼)
yum -y install langpacks-zh_CN.noarch
dnf同yum使用方法
dnf -y update
查看ip信息
nmcli
重啟網(wǎng)卡 指定網(wǎng)卡名重啟伐坏,否則重啟所有網(wǎng)卡
nmcli c reload + 網(wǎng)卡名
取關(guān)于已知設(shè)備的完整信息
nmcli device show
取活動(dòng)連接配置集的概述
nmcli connection show
修改主機(jī)名
sudo hostnamectl set-hostname 主機(jī)名
安裝epel源:
yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
以后慢慢在更新焦履。