分类:服务器:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Qiii2006留言 | 贡献
无编辑摘要
Zoomba留言 | 贡献
 
(未显示2个用户的15个中间版本)
第4行: 第4行:
推荐参考图书[http://www.china-pub.com/195591 《Ubuntu Server最佳方案》]
推荐参考图书[http://www.china-pub.com/195591 《Ubuntu Server最佳方案》]
==把语言环境变量改为英文==
==把语言环境变量改为英文==
<pre>locale</pre>
修改语言环境变量为英文:[[修改locale]]
<pre>sudo nano /etc/default/locale</pre>
==服务器==
<pre>LANG="en_US.UTF-8"
Web服务器:[[Apache]]、[[Nginx]]、[[Lighttpd]]
LANGUAGE="en_US:en"
 
</pre>
FTP服务器:[[Vsftpd]]、[[Proftpd]]、[[Pureftpd]]
<pre>locale</pre>
 
<pre>qii@ubuntu:~$ locale
Mail服务器:[[Sendmail]]、[[Postfix]]、[[IRedMail]]
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
Proxy服务器:[[Squid]]、[[UbuntuHelp:AptProxy/zh|AptProxy]]
locale: Cannot set LC_ALL to default locale: No such file or directory
 
LANG=en_US.UTF-8
Samba服务器:[[Samba]]
LANGUAGE=en_US:en
 
LC_CTYPE="en_US.UTF-8"
数据库服务器:[[MySQL]]、[[PostgreSQL]]
LC_NUMERIC="en_US.UTF-8"
 
LC_TIME="en_US.UTF-8"
邮件列表服务器:[[Mailman]]
LC_COLLATE="en_US.UTF-8"
 
LC_MONETARY="en_US.UTF-8"
打印服务器:[[CUPS]]
LC_MESSAGES="en_US.UTF-8"
 
LC_PAPER="en_US.UTF-8"
时间服务器:[[NTP]]
LC_NAME="en_US.UTF-8"
 
LC_ADDRESS="en_US.UTF-8"
DNS 域名解析服务器:[[BIND]]、[[PowerDNS]]、[[MyDNS]]
LC_TELEPHONE="en_US.UTF-8"
 
LC_MEASUREMENT="en_US.UTF-8"
备份:[[Quick HOWTO : Ch26 : Linux Software RAID/zh|软RAID]]
LC_IDENTIFICATION="en_US.UTF-8"
 
LC_ALL=
监控:[[Zabbix]]
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
实例:[[Drupal]]、
C
POSIX
zh_CN.utf8
zh_SG.utf8
qii@ubuntu:~$ cd /usr/share/locales
qii@ubuntu:/usr/share/locales$ ls
install-language-pack  remove-language-pack
qii@ubuntu:/usr/share/locales$ ./install-language-pack en_US
/usr/sbin/locale-gen: line 114: /var/lib/locales/supported.d/local: Permission denied
qii@ubuntu:/usr/share/locales$ sudo !!
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=
</pre>
[[Category:页面分类|B]]
[[Category:页面分类|B]]

2013年8月26日 (一) 15:18的最新版本

{{#ifeq:{{{2}}}|...|...|页面分类}}{{
  1. if: | > {{#ifeq:{{{2}}}|...|...|{{#ifexist: Category:{{{2}}}|[[:Category:{{{2}}}|{{{2}}}]]|{{{2}}}}}}}}}{{
  2. if: | > {{#ifeq:{{{3}}}|...|...|{{#ifexist: Category:{{{3}}}|[[:Category:{{{3}}}|{{{3}}}]]|{{{3}}}}}}}}}{{
  3. if: | > {{#ifeq:{{{4}}}|...|...|{{#ifexist: Category:{{{4}}}|[[:Category:{{{4}}}|{{{4}}}]]|{{{4}}}}}}}}}{{
  4. if: | > {{#ifeq:{{{5}}}|...|...|{{#ifexist: Category:{{{5}}}|[[:Category:{{{5}}}|{{{5}}}]]|{{{5}}}}}}}}}{{
  5. if: | > {{#ifeq:{{{6}}}|...|...|{{#ifexist: Category:{{{6}}}|[[:Category:{{{6}}}|{{{6}}}]]|{{{6}}}}}}}}}{{
  6. if: | > {{#ifeq:{{{7}}}|...|...|{{#ifexist: Category:{{{7}}}|[[:Category:{{{7}}}|{{{7}}}]]|{{{7}}}}}}}}}{{
  7. if: | > {{#ifeq:{{{8}}}|...|...|{{#ifexist: Category:{{{8}}}|[[:Category:{{{8}}}|{{{8}}}]]|{{{8}}}}}}}}}{{
  8. if: | > {{#ifeq:{{{9}}}|...|...|{{#ifexist: Category:{{{9}}}|[[:Category:{{{9}}}|{{{9}}}]]|{{{9}}}}}}}}} > 服务器

Ubuntu建站

推荐参考图书《Ubuntu Server最佳方案》

把语言环境变量改为英文

修改语言环境变量为英文:修改locale

服务器

Web服务器:ApacheNginxLighttpd

FTP服务器:VsftpdProftpdPureftpd

Mail服务器:SendmailPostfixIRedMail

Proxy服务器:SquidAptProxy

Samba服务器:Samba

数据库服务器:MySQLPostgreSQL

邮件列表服务器:Mailman

打印服务器:CUPS

时间服务器:NTP

DNS 域名解析服务器:BINDPowerDNSMyDNS

备份:软RAID

监控:Zabbix

安全:屏蔽迅雷

实例:Drupal