linux | 时间同步 | 时钟同步 | ntp同步系统时间

一、说明
        1、linux系统

        2、centos

        3、系统时间快了2分钟,需要搞成同步

二、具体实现

1)安装ntp
yum -y install ntp
2)启动
systemctl start ntpd
3)设置开机自启
systemctl enable ntpd
4)查看状态
systemctl status ntpd
5)修改配置文件
vi /etc/ntp.conf
6)配置同步阿里云时钟
server ntp.aliyun.com iburst
7)保存并重启
systemctl restart ntpd
8)检查同步
ntpq -p
9)查看系统时间
date

 

posted @ 2023-07-03 14:03  一只奋斗的小小鸟  阅读(542)  评论(0编辑  收藏  举报