分类:服务器:修订间差异
来自Ubuntu中文
跳到导航跳到搜索
无编辑摘要 |
无编辑摘要 |
||
第4行: | 第4行: | ||
推荐参考图书[http://www.china-pub.com/195591 《Ubuntu Server最佳方案》] | 推荐参考图书[http://www.china-pub.com/195591 《Ubuntu Server最佳方案》] | ||
==把语言环境变量改为英文== | ==把语言环境变量改为英文== | ||
将Ubuntu系统语言环境改为英文的en_US.UTF-8 | |||
查看当前系统语言环境 | |||
<pre>locale</pre> | <pre>locale</pre> | ||
编辑配置文件,将zh_US.UTF-8改为en_US.UTF-8,zh改为en | |||
<pre>sudo nano /etc/default/locale</pre> | <pre>sudo nano /etc/default/locale</pre> | ||
<pre>LANG="en_US.UTF-8" | <pre>LANG="en_US.UTF-8" | ||
第10行: | 第14行: | ||
</pre> | </pre> | ||
<pre>locale</pre> | <pre>locale</pre> | ||
继续查看更改后的系统语言变量,如果出现下列错误,说明没安装en_US的local | |||
<pre>qii@ubuntu:~$ locale | <pre>qii@ubuntu:~$ locale | ||
locale: Cannot set LC_CTYPE to default locale: No such file or directory | locale: Cannot set LC_CTYPE to default locale: No such file or directory | ||
第28行: | 第33行: | ||
LC_MEASUREMENT="en_US.UTF-8" | LC_MEASUREMENT="en_US.UTF-8" | ||
LC_IDENTIFICATION="en_US.UTF-8" | LC_IDENTIFICATION="en_US.UTF-8" | ||
LC_ALL= | LC_ALL=</pre> | ||
查看系统内安装的locale | |||
<pre> | |||
qii@ubuntu:~$ locale -a | qii@ubuntu:~$ locale -a | ||
locale: Cannot set LC_CTYPE to default locale: No such file or directory | locale: Cannot set LC_CTYPE to default locale: No such file or directory | ||
第36行: | 第43行: | ||
POSIX | POSIX | ||
zh_CN.utf8 | zh_CN.utf8 | ||
zh_SG.utf8 | zh_SG.utf8</pre> | ||
看吧,没装en_US.UTF-8 | |||
安装en_US.UTF-8 | |||
<pre> | |||
qii@ubuntu:~$ cd /usr/share/locales | qii@ubuntu:~$ cd /usr/share/locales | ||
qii@ubuntu:/usr/share/locales$ ls | qii@ubuntu:/usr/share/locales$ ls | ||
install-language-pack remove-language-pack | install-language-pack remove-language-pack | ||
qii@ubuntu:/usr/share/locales$ | qii@ubuntu:/usr/share/locales$sudo ./install-language-pack en_US | ||
sudo ./install-language-pack en_US | |||
Generating locales... | Generating locales... | ||
en_US.UTF-8... done | en_US.UTF-8... done | ||
Generation complete. | Generation complete. | ||
dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option) | dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option) | ||
</pre> | |||
查看,应该一切正常了。 | |||
<pre> | |||
qii@ubuntu:/usr/share/locales$ locale | qii@ubuntu:/usr/share/locales$ locale | ||
LANG=en_US.UTF-8 | LANG=en_US.UTF-8 |
2010年7月3日 (六) 17:31的版本
{{#ifeq:{{{2}}}|...|...|页面分类}}{{
- if: | > {{#ifeq:{{{2}}}|...|...|{{#ifexist: Category:{{{2}}}|[[:Category:{{{2}}}|{{{2}}}]]|{{{2}}}}}}}}}{{
- if: | > {{#ifeq:{{{3}}}|...|...|{{#ifexist: Category:{{{3}}}|[[:Category:{{{3}}}|{{{3}}}]]|{{{3}}}}}}}}}{{
- if: | > {{#ifeq:{{{4}}}|...|...|{{#ifexist: Category:{{{4}}}|[[:Category:{{{4}}}|{{{4}}}]]|{{{4}}}}}}}}}{{
- if: | > {{#ifeq:{{{5}}}|...|...|{{#ifexist: Category:{{{5}}}|[[:Category:{{{5}}}|{{{5}}}]]|{{{5}}}}}}}}}{{
- if: | > {{#ifeq:{{{6}}}|...|...|{{#ifexist: Category:{{{6}}}|[[:Category:{{{6}}}|{{{6}}}]]|{{{6}}}}}}}}}{{
- if: | > {{#ifeq:{{{7}}}|...|...|{{#ifexist: Category:{{{7}}}|[[:Category:{{{7}}}|{{{7}}}]]|{{{7}}}}}}}}}{{
- if: | > {{#ifeq:{{{8}}}|...|...|{{#ifexist: Category:{{{8}}}|[[:Category:{{{8}}}|{{{8}}}]]|{{{8}}}}}}}}}{{
- if: | > {{#ifeq:{{{9}}}|...|...|{{#ifexist: Category:{{{9}}}|[[:Category:{{{9}}}|{{{9}}}]]|{{{9}}}}}}}}} > 服务器
Ubuntu建站
推荐参考图书《Ubuntu Server最佳方案》
把语言环境变量改为英文
将Ubuntu系统语言环境改为英文的en_US.UTF-8
查看当前系统语言环境
locale
编辑配置文件,将zh_US.UTF-8改为en_US.UTF-8,zh改为en
sudo nano /etc/default/locale
LANG="en_US.UTF-8" LANGUAGE="en_US:en"
locale
继续查看更改后的系统语言变量,如果出现下列错误,说明没安装en_US的local
qii@ubuntu:~$ locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
查看系统内安装的locale
qii@ubuntu:~$ locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C POSIX zh_CN.utf8 zh_SG.utf8
看吧,没装en_US.UTF-8 安装en_US.UTF-8
qii@ubuntu:~$ cd /usr/share/locales qii@ubuntu:/usr/share/locales$ ls install-language-pack remove-language-pack qii@ubuntu:/usr/share/locales$sudo ./install-language-pack en_US Generating locales... en_US.UTF-8... done Generation complete. dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)
查看,应该一切正常了。
qii@ubuntu:/usr/share/locales$ locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
分类“服务器”中的页面
以下47个页面属于本分类,共47个页面。