centos 修改普通用户语言

前端之家收集整理的这篇文章主要介绍了centos 修改普通用户语言前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

vim /etc/profile


找到export后添加

export LANG="zh_CN.UTF-8"


export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTRO LANG

:wq


切换后重新进入确认查看

[root@vjava25 ~]# locale

LANG=zh_CN.UTF-8

LC_CTYPE="zh_CN.UTF-8"

LC_NUMERIC="zh_CN.UTF-8"

LC_TIME="zh_CN.UTF-8"

LC_COLLATE="zh_CN.UTF-8"

LC_MONETARY="zh_CN.UTF-8"

LC_MESSAGES="zh_CN.UTF-8"

LC_PAPER="zh_CN.UTF-8"

LC_NAME="zh_CN.UTF-8"

LC_ADDRESS="zh_CN.UTF-8"

LC_TELEPHONE="zh_CN.UTF-8"

LC_MEASUREMENT="zh_CN.UTF-8"

LC_IDENTIFICATION="zh_CN.UTF-8"

LC_ALL=

原文链接:https://www.f2er.com/centos/377492.html

猜你在找的CentOS相关文章