================时钟同步设置================
1.添加路由
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
并添加
route add -host 10.10.10.33 gw 10.10.3.192
2.重启网络
#service network restart
3.测试网络
#ping 10.10.10.33
4.修改参数文件
#vi /etc/ntp.conf
并添加
tinker panic 0
logconfig =allinfo +allevents +allstatistics
server 10.10.10.33 prefer
restrict default nomodify notrap noquery
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
5.配置ntpd启动级
#chkconfig --level 123 ntpd on;chkconfig --list ntpd
6.重启ntp服务
#service ntpd restart
1.添加路由
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
并添加
route add -host 10.10.10.33 gw 10.10.3.192
2.重启网络
#service network restart
3.测试网络
#ping 10.10.10.33
4.修改参数文件
#vi /etc/ntp.conf
并添加
tinker panic 0
logconfig =allinfo +allevents +allstatistics
server 10.10.10.33 prefer
restrict default nomodify notrap noquery
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
5.配置ntpd启动级
#chkconfig --level 123 ntpd on;chkconfig --list ntpd
6.重启ntp服务
#service ntpd restart
本文详细介绍了如何在Linux系统中进行时钟同步设置,包括添加路由、重启网络服务、修改ntp配置文件等步骤,并提供了具体的命令示例。
422

被折叠的 条评论
为什么被折叠?



