1.# apt-get install ntp
2.# vi /etc/ntp.conf
增加如下:
restrict 127.0.0.1
restrict 10.91.0.0(改成你的ip地址) mask 255.255.255.0 nomodify
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
3.# /etc/init.d/ntp restart
1.# apt-get install ntp
2.# vi /etc/ntp.conf
增加如下:
restrict 127.0.0.1
restrict 10.91.0.0(改成你的ip地址) mask 255.255.255.0 nomodify
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
3.# /etc/init.d/ntp restart
转载于:https://my.oschina.net/oscfox/blog/310161