linux 时间服务器,同步组织内部服务器时间
来源:互联网 发布:php.ini 编码设置 编辑:程序博客网 时间:2024/06/06 13:56
假定时钟服务器IP地址为:192.168.4.211
服务器端配置:
1:置/etc/ntp.conf文件内容为:
server 127.127.1.0 minpoll 4
fudge 127.127.1.0 stratum 1
restrict 127.0.0.1
restrict 192.168.4.0 mask 255.255.255.0 nomodify notrap
driftfile /var/lib/ntp/drift
2: /etc/ntp/ntpservers应置空
3: /etc/ntp/step-tickers应配置为 127.127.1.0
fudge 127.127.1.0 stratum 1
restrict 127.0.0.1
restrict 192.168.4.0 mask 255.255.255.0 nomodify notrap
driftfile /var/lib/ntp/drift
2: /etc/ntp/ntpservers应置空
3: /etc/ntp/step-tickers应配置为 127.127.1.0
上诉修改完成后,以root用户身份重启ntpd服务:service ntpd restart即可
客户端配置:
1:置/etc/ntp.conf文件内容为:
server 192.168.4.211
fudge 127.127.1.0 stratum 2
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
restrict 192.168.4.211 mask 255.255.255.255
fudge 127.127.1.0 stratum 2
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
restrict 192.168.4.211 mask 255.255.255.255
2. /etc/ntp/ntpservers 文件内容置空
3. /etc/ntp/step-tickers文件内容置为时钟服务器IP地址 192.168.4.211
3. /etc/ntp/step-tickers文件内容置为时钟服务器IP地址 192.168.4.211
上诉修改完成后,以root用户身份重启ntpd服务:service ntpd restart即可
用户可用以下两个常用命令查看ntpd服务状态:
1 ntpq -p
2 ntpstat
- linux 时间服务器,同步组织内部服务器时间
- Linux服务器时间同步
- Linux服务器时间同步
- Linux服务器同步时间
- Linux服务器时间同步
- linux服务器同步时间
- Linux 服务器时间同步
- Linux服务器时间同步
- Linux服务器时间同步
- linux 服务器时间同步
- linux 服务器时间同步
- Linux 服务器时间同步
- Linux同步时间服务器
- Linux服务器时间同步
- Linux 服务器时间同步
- linux服务器时间同步
- Linux服务器时间同步
- LINUX服务器同步时间
- 转载 -- iOS应用程序生命周期(前后台切换,应用的各种状态)详解
- oracle死锁时,杀进程的方法
- hdu 4416 Good Article Good sentence (后缀自动机 SAM)
- 线程安全函数和可重入函数
- equals 和 == 的区别
- linux 时间服务器,同步组织内部服务器时间
- 关于“数组名”和“数组名取地址”的区别
- eclipase 设置代码模板,代码格式
- 安卓中实现情景模式的设计
- COCOS2D-X游戏开发常用工具
- Revit编程如何提取轴线信息
- JS 框架 :后台系统完整的解决方案BUI
- js实现图片翻看(缩略图)1
- java实现常见的排序(冒泡、插入、选择、快排)