命令如下
#设置时区
date -R #查看当期时区
tzselect #设置时区
#? 4
#? 10
#? 1
#? 1
cat >> /etc/profile << eof
TZ='Asia/Shanghai'; export TZ
eof
source /etc/profile
#同步系统时间
apt install ntpdate
ntpdate cn.pool.ntp.org
命令如下
#设置时区
date -R #查看当期时区
tzselect #设置时区
#? 4
#? 10
#? 1
#? 1
cat >> /etc/profile << eof
TZ='Asia/Shanghai'; export TZ
eof
source /etc/profile
#同步系统时间
apt install ntpdate
ntpdate cn.pool.ntp.org