You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
# 安装ntp 服务(内网需配置yum源)
yum -y install ntpd
添加ntp服务器
vim /etc/ntp.conf
!
# 时区设置
timedatectl set-timezone Asia/Shanghai
# 查看123端口
netstat -lanp|grep 123
# 如果123被占用
ntpdate -u 172.31.3.1
# 发起同步
ntpdate 172.31.3.1
# 启动ntp
service ntpd start
# 设为开启自启
chkconfig ntpd on