Ubuntu系统设置时区时间
设置上海时区
timedatectl set-timezone Asia/Shanghai
同步时间服务器
ntpdate ntp1.aliyun.com
将当前时间写入BIOS避免重启之后失效
hwclock --systohc
查看服务器时间是否正常
date -R
Ubuntu系统设置时区时间
设置上海时区
timedatectl set-timezone Asia/Shanghai
同步时间服务器
ntpdate ntp1.aliyun.com
将当前时间写入BIOS避免重启之后失效
hwclock --systohc
查看服务器时间是否正常
date -R