- 修改时区
mv /etc/localtime /etc/localtime.bk
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- set the hardware clock to the current system time
hwclock -w
- 重启定时任务
service crond restart
service rsyslog restart
mv /etc/localtime /etc/localtime.bk
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock -w
service crond restart
service rsyslog restart
本文标题:linux 修改时区
本文链接:https://www.haomeiwen.com/subject/vquvqftx.html
网友评论