三月26笔记
1:查看服务器时间:date[cst是时区指亚洲]
2:手动重设服务器时间:date -s "填时间"
3 :从服务器同步时间到本地:
ntpdade
yum install ntpdate
y[会提示你是否安装]y是同意
ntpdate time.Windows.com
4:硬件时间 【BOTS】
hwclock -r
手动设置硬件时间
hwclock --set --date "2022-10-11 23:12:12''
5:同步系统时间到硬件时间
hwclock --systohc
6:同步硬件时到系统时间
hwclock -w
7:reboot重启服务器
8:systemctl stop firewalld 关闭防火墙
9:systemctl disable firewalld 关闭防火墙开机自启
10:systemctl status firewalld 查看防火墙状态
11:getenforce 查看状态
12:setenforce 0(临时关闭)1 (临时开启)
永久关闭:
13:打开selinux配置文件vi /etc/selinux/config
14:修改SELINUX SELINUX=enforcing ==>SELINUX=disabled
15:exc
16: wq