CentOS6
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date -s "2019-02-24 11:11:11"
hwclock -w
CentOS7
timedatectl status
timedatectl set-timezone "Asia/Shanghai"
CentOS6
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date -s "2019-02-24 11:11:11"
hwclock -w
CentOS7
timedatectl status
timedatectl set-timezone "Asia/Shanghai"
本文标题:LINUX时间设置
本文链接:https://www.haomeiwen.com/subject/uznvpctx.html
网友评论