设置centos8.5 操作系统为24小时间显示与+8时区&vi中文乱码
24小时间显示&vi中文乱码
echo 'LANG="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"' > /etc/locale.conf
#或者
echo 'LANG="en_US.UTF-8"
LC_TIME="en_US.UTF-8"' > /etc/locale.conf
#生效
source /etc/locale.conf
+8时区
timedatectl set-timezone Asia/Shanghai && systemctl restart systemd-timedated
评论已关闭