Linux NTP config
来源:互联网 发布:万捷网络验证要多少钱 编辑:程序博客网 时间:2024/06/11 04:44
Step 1
config check:
cat /etc/sysconfig/ntpd|grep -v ^$|grep -v ^#Step 2:
vi /etc/sysconfig/ntpd #add the following content
SYNC_HWCLOCK=no
NTPDATE_OPTIONS=""
Step 3:
vi /etc/ntp.conf #add the following content
server 1.1.1.1 #ntp server01 address
restrict 1.1.1.1 mask 255.255.255.255 nomodify notrap noquery
server 2.2.2.2 #ntp server02 address
restrict 2.2.2.2 mask 255.255.255.255 nomodify notrap noquery
Step 4:
the final config:
#cat /etc/ntp.conf|grep -v ^$|grep -v ^#
restrict default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys
server 1.1.1.1
restrict 1.1.1.1 mask 255.255.255.255 nomodify notrap noquery
server 2.2.2.2
restrict 2.2.2.2 mask 255.255.255.255 nomodify notrap noquery
Step 5:
service ntpd start
Step 6:
remote refid st t when poll reach delay offset jitter
=================================================================
*1.1.1.1 .GPS. 1 u 28 8 377 0.540 0.085 0.063
+2.2.2.2 .GPS. 1 u 47 8 377 0.572 0.142 0.041
Step 7:
chkconfig --list ntpd
chkconfig ntpd on
0 0
- Linux NTP config
- Linux NTP
- linux的NTP设置
- linux下ntp实现
- Linux NTP协议
- Linux下NTP配置
- linux搭建ntp服务器
- linux ntp同步时间
- linux ntp时间同步
- linux配置ntp讲解
- Linux配置NTP服务
- Linux配置NTP服务
- Linux NTP服务总结
- NTP for Linux
- Linux NTP 服务详解
- Linux NTP服务器
- 移植ntp(mips-linux)
- linux ntp时间同步
- LeetCode 8. String to Integer (atoi)
- retrofit 学习和使用
- CI3框架初识-钩子
- nginx 日志配置与分割
- AndroidManifest.xml 清单文件
- Linux NTP config
- iOS设计模式-建造者模式
- android控件拖动,移动、解决父布局重绘时控件回到原点
- 任务栏窗口隐藏
- 训练2-HTML 学习H2标签
- Java字符串String(一)
- nginx优化专题--worker_cpu_affinity
- javascript中BOM部分基础知识总结
- 钱途系列-点题