电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

RHEL6下NTP服务器的配置VIP免费

RHEL6下NTP服务器的配置_第1页
1/9
RHEL6下NTP服务器的配置_第2页
2/9
RHEL6下NTP服务器的配置_第3页
3/9
RHEL6 下NTP 服务器的配置 2011-09-06 23:17:50| 分类: redhat6 初识 | 标签: |举报 |字号大中小 订阅 RHEL6 下NTP 服务器的配置 实验环境: [root@desktop2 ~ ]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.0 (Santiago) [root@desktop2 ~ ]# uname -r 2.6.32-71.el6.x86_64 一、NTP 服务的原理 1、原理 NTP(Network Time Protocol,网络时间协议)是用来使计算机时间同步化的一种协议,它可以使计算机对其服务器或时钟源(如石英钟,GPS 等等)做同步化,它可以提供高精准度的时间校正(LAN 上与标准间差小于 1 毫秒,WAN 上几十毫秒),且可介由加密确认的方式来防止恶毒的协议攻击。 2、端口 UDP 123 二、NTP 服务的配置 1、安装 NTP 软件包 [root@desktop2 ~ ]# yum -y install ntp 2、NTP 服务的配置 [root@desktop2 ~ ]# grep -v "^#" /etc/ntp.conf driftfile /var/lib/ntp/drift restrict default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1 restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap server 192.168.0.254 server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 includefile /etc/ntp/crypto/pw keys /etc/ntp/keys logfile /var/log/ntp [root@desktop2 ~]# cat /etc/ntp/step-tickers //当NTP服务启动时,会自动与该文件中的记录的上层NTP 服务进行时间校对 # List of servers used for initial synchronization. 192.168.0.254 [root@desktop2 ~]# cat /etc/sysconfig/ntpd //允许BIOS 与系统时间同步 # Drop root to id 'ntp:ntp' by default. SYNC_HWCLOCK=yes OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g" 3、启动NTP 服务 [root@desktop2 ~]# service ntpd start [root@desktop2 ~]# chkconfig ntpd on 4、NTP 的测试 [root@desktop2 ~]# ntpstat synchronised to NTP server (192.168.0.254) at stratum 12 //进行时间校对的NTP 服务器 time correct to within 958 ms //本地与上层NTP 服务器的时间差 polling server every 64 s //下次同步时间 [root@desktop2 ~]# ntpq...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

RHEL6下NTP服务器的配置

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部