文章连接: https://blog.csdn.net/sxz LC/article/details/115792270
========
扩展:
使用Linux的tzselect功能,了解每个大陆都有哪些国家
3359 blog.csdn.net/sxz LC/article/details/115792692
========
1 .显示当前时区
2.执行tzselect命令,
3.选择你的国家(地区)所在的洲(亚洲,输入4)
4 .选择你的国家中国9
5 .选择区域北京1
确认是1
youcanmakethischangepermanentforyourselfbyappendingtheline
TZ=' Asia/Shanghai'; 导出tz
othe file '.profile ' in your home directory; then log out and log in again。
Here is that TZ value again,thistimeonstandardoutputsothatyou
can use the/usr/lhdxxm/tzselectcommandinshellscripts 3360
7 .时区timedatectlset-time zone ' Asia/Shanghai '在上述获得的【Asia/Shanghai】中进行修改
===
必须以管理员权限运行
8.再次查看时间,已经是当前时区的时间了
===