字符集对应配置文件:/etc/sysconfig/i18n
先备份再修改:
备份:cp /etc/sysconfig/i18n /etc/sysconfig/i18n.oldboy.20150521
修改:sed -i ‘s#LANG=”en_US.UTF-8”#LANG=zh_CN.UTF-8#g’/etc/sysconfig/i18n
生效:. /etc/sysconfig/i18n 或 source /etc/sysconfig/i18n
再改选项
字符集对应配置文件:/etc/sysconfig/i18n
先备份再修改:
备份:cp /etc/sysconfig/i18n /etc/sysconfig/i18n.oldboy.20150521
修改:sed -i ‘s#LANG=”en_US.UTF-8”#LANG=zh_CN.UTF-8#g’/etc/sysconfig/i18n
生效:. /etc/sysconfig/i18n 或 source /etc/sysconfig/i18n
再改选项