1. 程式人生 > >Ubuntu和Centos中英文locale設定

Ubuntu和Centos中英文locale設定

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"