23.centos7修改时区与时间后crontab日志时间与系统时间不一样处理方法

1、修改时区与时间

      ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2、同步时间

      yum -y instll ntp

      ntpdate pool.ntp.org

3、重启crond、rsyslog服务

      systemctl restart crond

       systemctl restart rsyslog

猜你喜欢

转载自blog.csdn.net/kevinsingapore/article/details/80813865