NTP服务器
# ntpdate 133.100.11.8
[root@vm-30 ~]# cat /etc/ntp.conf
#设置本机权限
restrict 127.0.0.1 mask 255.0.0.0
#设置本网段权限 nomodify 表示不可更改服务器标志
restrict 192.168.3.0 mask 255.255.255.0 nomodify
#设置所有网络权限
restrict 0.0.0.0 mask 0.0.0.0 nomodify notrap
# 设置日志文件
logfile /var/log/ntpd.log
# 配置server
server cn.pool.ntp.org prefer
server asia.pool.ntp.org
#restrict default nomodify notrap nopeer noquery
restrict default nomodify
# ## added by mgr.
server 13.80.12.54 prefer
## 查询运行状态
ntpq -p
myron