文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>关于ntp server 和 client 的 了解

关于ntp server 和 client 的 了解

时间:2010-08-18  来源:烧梦人


1、设置ntp server
首先如果要把一台服务器设置成为ntp时间服务器,那么这台服务器就不能在慢同步互联网上的标准时间了所以/etc/ntp.conf
#server 0.centos.pool.ntp.org --》关了
#server 1.centos.pool.ntp.org--》关了
#server 2.centos.pool.ntp.org--》关了
server localhost --》 以自己为标准
fudge   127.127.1.0 stratum 1 --》 只参考第一层
然后 /etc/init.d/ntpd restart 重启ntp 服务 之后 date -s '2010-06-15 10:10:00' && hwclock -w 修改时间并写入 bios
以上操作之后ntp 时间服务器做完了,但是等几分钟才能生效。
2、client 端设置
/etc/init.d/ntpd stop ; ntpdate 10.15.*.* (ntp server ip) ; /etc/init.d/ntpd start
3,一般情况下在客户端得机器上 不要直接 date -s 这样来修改时间 虽然这样修改短时间内,不会有什么异常但是如果这台机器上 ntp 服务是启动的一段时间后还是会有异常的,所以最好是 这样 /etc/init.d/ntpd stop ; date -s '要改成的时间'
相关阅读 更多 +
排行榜 更多 +
方块拼凑最新版 v1.0 安卓版

方块拼凑最新版 v1.0 安卓版

休闲益智 下载
方块拼凑最新版 v1.0 安卓版

方块拼凑最新版 v1.0 安卓版

休闲益智 下载
愤怒的小鸟爆破安卓版 v2.7.0 手机版

愤怒的小鸟爆破安卓版 v2.7.0 手机版

飞行射击 下载