![](/style/images/good.png)
15
![](/style/images/bad.png)
centos7修改系统语言为简体中文
source link: http://www.cnblogs.com/qingbai/p/12688622.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
说明
自己装系统时一般都可以自定义选择系统语言。可是云端服务器一般都是安装好的镜像,默认系统语言为英文,对于初学者可能还会有搞不懂的计算机词汇。这里简单说一下centos7怎么修改系统语言为中文。
修改centos7系统语言
- 查看系当前语言包
locale
查看系统拥有语言包
locale -a
(zh_CN.UTF-8是简体中文,如果没有zh_CN.UTF-8,就安装语言包,如果存在可以直接设置)
- 安装简体中文语言包
yum install kde-l10n-Chinese
-
设置为中文
临时修改,重启服务器之后就会还原之前的设置
LANG="zh_CN.UTF-8" #修改为中文 LANG="en_US.UTF-8" #修改为英文
永久修改就要把配置写入文件里面
方法(一)
vi /etc/locale.conf ##加下面内容到第一行,设置中文 LANG=zh_CN.UTF8
方法(二)
localectl set-locale LANG=zh_CN.UTF8
其他
修改时区为亚洲上海
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
查看ip时bash: ifconfig: command not found 解决办法
yum install net-tools ##一般是没有安装这个
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK