centos 设置时区并同步时间
设置时区
cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
安装时间同步工具
yum install ntp ntpdate -y
执行同步时间
service ntpd stop ntpdate us.pool.ntp.org service ntpd start date
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »
因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合AMP标准。