ntp 时间 def term ntp 时间服务器 vim 分享 fff sta tex
Linux 修改时区
shell#cp / usr / share / zoneinfo / Asia / Shanghai / etc / localtime
Linux 安装 ntp 时间服务器
① 配置方法一:只允许192.168.100.0网段的客户机进行时间同步
shell # yum install ntp ntpdate -y
shell # vim /etc/ntp.conf
1)vim /etc/ntp.conf
在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://www.bubuko.com/infodetail-2464422.html