centos修改时区为印尼雅加达

centos修改时区为印尼雅加达

摘要

centos修改时区为印尼雅加达

centos修改时区为印尼雅加达 +7

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime


ntpdate pool.ntp.org
[ ! -e "/var/spool/cron/root" -o -z "$(grep 'ntpdate' /var/spool/cron/root)" ] && { echo "*/20 * * * * $(which ntpdate) pool.ntp.org > /dev/null 2>&1" >> /var/spool/cron/root;chmod 600 /var/spool/cron/root; }