时区设置
[root@k8smaster01 ~]# tzselect |more
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
10) Pacific Ocean
[root@k8smaster01 ~]# rm -f /etc/localtime
[root@k8smaster01 ~]# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
编码设置
vi /etc/profile
打开文件后在最后一行加入如下命令:
export LC_ALL="zh_CN.UTF-8" export LANG="zh_CN.UTF-8"
保存退出后,执行文件生效命令:
source /etc/profile