1、移除默认纽约时区的文件 rm -rf /etc/localtime 2、更改为+8上海时区 cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 3、同步时间 ntpdate -u ntp1.aliyun.com 4、查看同步后的时间 date "+%Y-%m-%d %H:%M:%S"