[Linux CentOS6.9文件操作系统提示将英文跟换为中文]

[请在更换系统语言时备份服务器当前盘~有备无患]


1.安装中文语言包:yum groupinstall chinese-support


2.用echo $LANG 查看当前的语言编码;为zh_CN.UTF-8 显示的则是中文

其他为英文;


3.注意:centos7的字符集配置文件为/etc/locale.conf,如果是7之前的版本,应修改/etc/sysconfig/i18n,修改完成,用reboot重启系统。


4.将重复的覆盖:

LANG="zh_CN.UTF-8"

LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"

SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"

SYSFONT="lat0-sun16"


5.LANG="zh_CN.UTF-8"命令将LANG字符集改为zh_CN.UTF-8


6,用echo $LANG 检查当前系统是否更换为zh_CN.UTF-8如果是就重启服务器

如果不是请在那三篇文档寻找答案~


http://m.blog.csdn.net/a1561386524/article/details/70240654

----------------------------------------------------------------------------------------------------------

https://m.baidu.com/from=1086k/bd_page_type=1/ssid=0/uid=0/pu=usm%401%2Csz%40320_1002%2Cta%40iphone_2_7.0_2_12137.1/baiduid=0AFEF5D59DCDDA6D92597E90FE8EE627/w=0_10_/t=iphone/l=3/tc?ref=www_iphone&lid=14275335525062935203&order=8&fm=alop&tj=www_normal_8_0_10_title&vit=osres&m=8&srd=1&cltj=cloud_title&asres=1&title=centos7%E7%B3%BB%E7%BB%9F%E8%AF%AD%E8%A8%80%E6%94%AF%E6%8C%81%E7%9A%84%E8%AE%BE%E7%BD%AE%E6%96%B9%E6%B3%95%2C%E5%BD%BB%E5%BA%95%E8%A7%A3%E5%86%B3%E4%B8%AD%E6%96%87%E6%98%BE%E7%A4%BA%E4%B9%B1%E7%A0%81...&dict=32&w_qd=IlPT2AEptyoA_yk57eId6hWx0yDYNqu7GQXGshO5afZzJQZX4UU7pn7K-egytc-6&sec=25105&di=155cc38c038fe5dc&bdenc=1&tch=124.0.34.1234.1.0&nsrc=IlPT2AEptyoA_yixCFOxXnANedT62v3IEQGG_zZS1TWqmFrte4viZQRAYTL6RHSJZpPPdzDXshUPaDD7&eqid=c61c2e06ace400001000000659f92175&wd=&clk_info=%7B%22srcid%22%3A%221599%22%2C%22tplname%22%3A%22www_normal%22%2C%22t%22%3A1509499257460%2C%22sig%22%3A%223802%22%2C%22xpath%22%3A%22div-div-div-a-p%22%7D&sfOpen=1%20Sherlock%20Holmes%202017/11/1%209:23:03

---------------------------------------------------------------------------------------------------------

http://www.xfcodes.com/centos/32938.htm

这三个网址可以解决大多数问题~:更换字符集之前要备份




你可能感兴趣的:(开发环境配置)