Linux安装NTP客户端自动同步时间
时间:2016-05-07 21:34 来源:linux.it.net.cn 作者:IT
Centos7安装NTP客户端自动同步时间解决方案
1
2
3
4
5
6
7
8
9
# 安装ntp客户端
yum install -y ntp
vi /etc/crontab
# 新增一行(定时任务):
# 60秒执行一次任务
# 其中,192.168.3.1是NTP服务器,请相应设置
0-59/1 * * * * root ntpdate -s 192.168.3.1
(责任编辑:IT)
Centos7安装NTP客户端自动同步时间解决方案
(责任编辑:IT) |