0
点赞
收藏
分享

微信扫一扫

【Linux】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

~~

举报

相关推荐

0 条评论