首页 > 系统服务 > 详细

Linux时间调整

时间:2018-01-17 11:15:01      阅读:202      评论:0      收藏:0      [点我收藏+]
Linux修改时区
shell # cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Linux安装ntp时间服务器

shell # yum install ntp ntpdate -y
shell # vim /etc/ntp.conf
1)vim /etc/ntp.conf
①  配置方法一:只允许192.168.100.0网段的客户机进行时间同步
在restrict default kod nomodify notrap nopeer noquery(表示默认拒绝所有IP的时间同步)之后增加一行:
restrict 192.168.100.0 mask 255.255.255.0 nomodify notrap

②  配置方法二:允许任何ip的客户机都可以进行时间同步
将restrict default kod nomodify notrap nopeer noquery修改为如下行:
Restrict default nomodify

技术分享图片

Linux时间调整

原文:http://blog.51cto.com/chuckzeng/2061885

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!