yum tenxun ntpdate 时间同步

yum tenxun ntpdate 时间同步,第1张

yum tenxun ntpdate 时间同步

  centos7

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
参考: https://mirrors.cloud.tencent.com/help/centos.html
eple
# epel(RHEL7系列)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo https://mirrors.cloud.tencent.com/help/epel.html ---------------------------------------------------
0.设置时区
rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
1.时间同步
echo "*/5 * * * * /usr/sbin/ntpdate time1.aliyun.com" >> /var/spool/cron/root
参考:https://blog.51cto.com/wzlinux/2043592
https://developer.aliyun.com/mirror/?spm=a2c6h.12873581.0.0.6df52784EnASTM

下载 ISO 文件

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/589111.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-12
下一篇 2022-04-12

发表评论

登录后才能评论

评论列表(0条)

保存