我的centos改如何配置ntp同步

[复制链接]
查看11 | 回复1 | 2011-9-3 10:32:01 | 显示全部楼层 |阅读模式
首先这是我的linux版本:LSBVersion::core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarchDistributorID:CentOSDescription:CentOSrelease5.2(Final)Release:5.2Codename:Final我安装在虚拟机vmware6.0上PCip192.168.83.57虚拟机centos分到ip:192.168.83.73ntp.conf:restrictdefaultnomodifynotrapnoqueryrestrict127.0.0.1restrict10.2.0.0mask255.255.255.0nomodifynotraprestrict192.43.244.18mask255.255.255.255nomodifynotrapnoqueryserver192.43.244.18server0.pool.ntp.orgserver1.pool.ntp.orgserver2.pool.ntp.orgserver127.127.1.0#localclockfudge127.127.1.0stratum10driftfile/var/lib/ntp/driftkeys/etc/ntp/keysrestrictdefaultnomodifynotrapnoqueryrestrict127.0.0.1restrict10.2.0.0mask255.255.255.0nomodifynotraprestrict192.43.244.18mask255.255.255.255nomodifynotrapnoqueryserver192.43.244.18server0.pool.ntp.orgserver1.pool.ntp.orgserver2.pool.ntp.orgserver127.127.1.0#localclockfudge127.127.1.0stratum10driftfile/var/lib/ntp/driftodcast192.168.1.255key42#broadcastserverserver127.127.1.0#localclockfudge127.127.1.0stratum10driftfile/var/lib/ntp/driftkeys/etc/ntp/keysSpecifythekeyidentifiertousewiththentpqutility.
回复

使用道具 举报

千问 | 2011-9-3 10:32:01 | 显示全部楼层
在图图形化界面输入下面命令
~#system-config-date
就会出现一个图形化的界面,.我相信图形化的东西你应该看得懂的,设置NTP就可以了,.需要的是,时间服务器的主机名
然后运行
~#servicentpdrestart
~#chkconfigntpdon
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行