//查看磁盘内存使用情况
df -h
//重启网络服务
systemctl restart network.service
//进入网络配置界面
nmtui
//防火墙相关
//关闭防火墙命令
systemctl stop firewalld.service
//开启防火墙
systemctl start firewalld.service
//关闭防火墙开机自启动
systemctl disable firewalld.service
//开启防火墙开机自启动
systemctl enable firewalld.service
//日期相关
//查询当前日期 date
,后面跟上[-s]+时间可直接修改日期,例如: date -s "2021-06-27 09:00:00"
需要同步网络日期的话:
//安装ntp服务:yum install -y ntpdate
//同步NTP服务器(上海)的时间 ntpdate -u ntp.api.bz