修改Ubuntu VPS的locales设置

Posted by zuzhihui in Linux技术 on 2008/06/20 with No Comments

在Debian VPS下修改locales设置很简单,dpkg-reconfigure locales就可以了。ubuntu是出于debian,但locales的设置方法却不同:

echo "zh_CN.UTF-8 UTF-8" > /var/lib/locales/supported.d/locale
echo "en_US.UTF-8 UTF-8" >> /var/lib/locales/supported.d/locale
locale-gen
echo 'LANG="zh_CN.UTF-8"' >> /etc/environment
标签:

Leave a Comment

Back to Top

2007-2017 © 北京瑞豪开源科技有限公司 京ICP备13004995号-2