rakbuluo 发表于 2019-6-13 13:29:28

CentOS 6&7修改语言

1、Centos 6版本操作系统修改语言操作步骤


通过使用df –h 查看磁盘分区返回结果,可以判断当前系统语言为中文还是英文。


使用root用户进到/etc/sysconfig/i18n文件。修改其配置文件vi /etc/sysconfig/i18n
LANG="en_US.UTF-8"(英文语言)LANG="zh_CN.UTF-8"(中文语言)
http://www.raksmart.com/Public/kindeditor/attached/image/20190516/20190516102100_70678.png
退出保存后执行:source /etc/sysconfig/i18n命令,命令立即生效。
如果需要修改为中文语言,可在步骤中注释掉英文语言添加中文语言保存后执行步骤即可。
如果系统没有中文语言包,可以通过yum下载安装中文语言包:yum groupinstall Chinese-support


2、Centos 7版本操作系统修改语言操作步骤


Centos 7 与centos 6的操作基本相同只是修改的语言配置文件是/etc/locale.conf。


使用root用户进入配置文件中vi /etc/locale.conf修改其中配置文件后重启系统即可。
LANG="en_US.UTF-8"(英文语言)LANG="zh_CN.UTF-8"(中文语言)
http://www.raksmart.com/Public/kindeditor/attached/image/20190516/20190516102119_64154.png

rakbuluo 发表于 2019-6-14 10:01:26

抢沙发!~:lol

Reb 发表于 2019-6-14 10:42:52

rakbuluo 发表于 2019-6-14 10:01
抢沙发!~

:loveliness:

whrs 发表于 2019-6-14 11:38:39

谢谢分享,学习了。
页: [1]
查看完整版本: CentOS 6&7修改语言