Ubuntu和Centos中英文locale设置 沙玛 博客频道 CSDN.NET

Ubuntu和Centos中英文locale设置 - 沙玛 - 博客频道 - CSDN.NET

Ubuntu和Centos中英文locale设置

595人阅读 评论(0) 收藏 举报

Ubuntu


  1.    modify /etc/default/locale and add the following to it
    LANG=en_US.UTF-8
    LANGUAGE=en_US.en
   2.  echo “export LANGUAGE=en_US:en” >> ~/.bashrc

CentOS

  设置 loacle 为中文环境

1)

#  vim /etc/sysconfig/i18n

LANG="zh_CN.UTF-8"

2).       设置 loacle 为英文环境

#  vim /etc/sysconfig/i18n

LANG="en_US.UTF-8"

原文地址:https://www.cnblogs.com/lexus/p/2727561.html