You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
```shell
|
|
# 安装ntp 服务(内网需配置yum源)
|
|
yum -y install ntpd
|
|
```
|
|
|
|
添加ntp服务器
|
|
vim /etc/ntp.conf
|
|
![[Pasted image 20240301135838.png]]
|
|
|
|
```shell
|
|
# 时区设置
|
|
timedatectl set-timezone Asia/Shanghai
|
|
# 发起同步
|
|
ntpdate 172.31.3.1
|
|
# 启动ntp
|
|
service ntpd start
|
|
# 设为开启自启
|
|
chkconfig ntpd on
|
|
``` |