centos7 ntp同步时间 1.安装ntpd服务 yum -y install ntp 2.查看ntp服务命令 #查看ntpd服务是否启动 systemctl status ntpd #启动ntpd服务 systemctl start ntpd #设置开机启动ntpd systemctl enable ntpd # 查看系统时间是否已同步 date