首页 > 系统 > Linux > 正文

HowTo:LinuxServerChangeORSetupTheTimezone

2024-06-28 14:31:41
字体:
来源:转载
供稿:网友

Method 1

#tzselect    # select timezone e.g. Asia/Shanghai#echo 'Asia/Shanghai' > /etc/timezone    # set timezone#apt-get install ntpdate # install ntpdate package to synchronize date  time#echo "server 3.cn.pool.ntp.org>server 3.asia.pool.ntp.org>server 0.asia.pool.ntp.org" /etc/ntp.conf#ntpdate -s 3.cn.pool.ntp.org # synchronize date time.

Method 2

#dpkg-reconfigure tzdata#apt-get install ntpdate # install ntpdate package to synchronize date  time#echo "server 3.cn.pool.ntp.org>server 3.asia.pool.ntp.org>server 0.asia.pool.ntp.org" /etc/ntp.conf#ntpdate -s 3.cn.pool.ntp.org # synchronize date time.

Refrence

ntp pool
HowTo: linux Server Change OR Setup The Timezone


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表