离线服务器linux的时间同步设置
如:本地有3台服务器需要时间同步分别是hadoop01,hadoop02,hadoop031,安装ntp服务器(每台到需要安装)yum install ntp -y2,在hadoop01做如下设置vi /etc/ntp.conf添加如下:server 127.127.1.0fudge 127.127.1.0 stratum 10systemctl restart ntpdchkconfig ntp
·
如:本地有3台服务器需要时间同步分别是hadoop01,hadoop02,hadoop03
1,安装ntp服务器(每台到需要安装)
yum install ntp -y
2,在hadoop01做如下设置
vi /etc/ntp.conf
添加如下:
server 127.127.1.0
fudge 127.127.1.0 stratum 10

systemctl restart ntpd
chkconfig ntpd on
3,其它节点
ntpdate hadoop01
出现如下则时间同步成功

chkconfig ntpd on
更多推荐



所有评论(0)