华为欧拉同步时间
1、主要内容
# 修改配置
vi /etc/chrony.conf #进入配置文件
#新增或者修改配置
server 192.168.8.5 iburst
allow 192.168.8.5
#开启同步时间
timedatectl set-ntp true
#重启chronyd
systemctl restart chronyd
#查看时间同步状态
timedatectl status
#查看时间同步
date
#手动修改时间
# 1、方式一:
sudo timedatectl set-time '2023-04-01 12:34:00'
# 2、方式二:
date -s “YYYY-MM-DD HH:MM:SS”
2、扩充
# 禁用ntp自动时间同步
sudo timedatectl set-ntp false
#重启ntp时间
sudo timedatectl set-ntp true
#
3、参考来源:
参考来源:
华为欧拉(Euler)同步网络时间,非NTP

浙公网安备 33010602011771号