centos ntp服务配置文件解析
2013-01-17 09:53
791 查看
1./etc/ntp
[root@gdgz-htjf-kvc01-1 ntp]# cat /etc/ntp.conf|grep ^# -v
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
restrict 0.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
Restrict ---------指定可以进行NTP通信的IP地址或网段
Server -----------指定时间校对的NTP服务器,优先级从上到下。
fudge --------
driftfile ---------和上层NTP服务器的频率误差记录在此文件
logfile -----------指定NTP服务日志文件
broadcast ---------指定NTP服务的网段
2./etc/ntp/step-tickers
[root@gdgz-htjf-kvc01-1 ntp]# cat /etc/ntp/step-tickers
0.centos.pool.ntp.org
1.centos.pool.ntp.org
2.centos.pool.ntp.org
当NTP服务启动会自动和此文件记录的NTP服务器进行时间校对
3./etc/sysconfig/ntpd
[root@gdgz-htjf-kvc01-1 ntp]# cat /etc/sysconfig/ntpd
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate
NTPDATE_OPTIONS=""
4.其他命令
ntpstat 显示NTP服务器的相关状态
ntpq -------启动标准的NTP查询
ntpdate ---------指定立即进行校对的时间服务器
NTP 服务时间
133.100.11.8 prefer
210.72.145.44
203.117.180.36
131.107.1.10
time.asia.apple.com
本文出自 “漫漫长路” 博客,请务必保留此出处http://ithelp.blog.51cto.com/4501237/1120362
[root@gdgz-htjf-kvc01-1 ntp]# cat /etc/ntp.conf|grep ^# -v
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
restrict 0.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
Restrict ---------指定可以进行NTP通信的IP地址或网段
Server -----------指定时间校对的NTP服务器,优先级从上到下。
fudge --------
driftfile ---------和上层NTP服务器的频率误差记录在此文件
logfile -----------指定NTP服务日志文件
broadcast ---------指定NTP服务的网段
2./etc/ntp/step-tickers
[root@gdgz-htjf-kvc01-1 ntp]# cat /etc/ntp/step-tickers
0.centos.pool.ntp.org
1.centos.pool.ntp.org
2.centos.pool.ntp.org
当NTP服务启动会自动和此文件记录的NTP服务器进行时间校对
3./etc/sysconfig/ntpd
[root@gdgz-htjf-kvc01-1 ntp]# cat /etc/sysconfig/ntpd
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate
NTPDATE_OPTIONS=""
4.其他命令
ntpstat 显示NTP服务器的相关状态
ntpq -------启动标准的NTP查询
ntpdate ---------指定立即进行校对的时间服务器
NTP 服务时间
133.100.11.8 prefer
210.72.145.44
203.117.180.36
131.107.1.10
time.asia.apple.com
本文出自 “漫漫长路” 博客,请务必保留此出处http://ithelp.blog.51cto.com/4501237/1120362
相关文章推荐
- Centos6.6搭建nginx服务及配置文件详解
- CentOS 安装配置JDK与Tomcat支持jsp文件解析
- centos-dhcp配置文件参数解析
- CentOS 下NTP服务的搭建与配置
- DNS服务原理及区域解析库文件配置
- 监听总结之解析问题一:由sqlnet.ora文件寻到TNSNAME适配器程序来解析网络服务名为它的具体配置(×)
- snmp服务配置及其oid、mib文件解析
- Mark-20170810-Centos 7 方便快捷安装 Ansible 及 copy 文件/启动 NTP 服务简例
- 总结之:CentOS6.5 DNS服务BIND配置、正反向解析、主从及压力测试(4)
- 转载:CENTOS NTP服务配置(转)
- CentOS7上搭建FTP服务+VSFTPD配置全解析
- 总结之:CentOS6.5 DNS服务BIND配置、正反向解析、主从及压力测试(2) 推荐
- CentOS 6.3下NTP服务安装和配置
- centos7自启动服务的配置文件
- Centos 6.5 DNS 文件都配置正确但无法解析的解决办法
- 总结之:CentOS6.5 DNS服务BIND配置、正反向解析、主从及压力测试(1)
- CentOS6.5下实现时间同步的 ntp 服务的配置
- centos中使用 vsftpd 服务,并且配置匿名用户上传和下载文件
- Linux服务器 CentOS 6系列最小化安装优化脚本详解02————修改history记录、定时校正服务器时间、停止IPv6网络服务、调整最大文件打开数、关闭写磁盘I/O功能、配置SSH服务