## Please edit system and help pages ONLY in the moinmaster wiki! For more
## information, please see MoinMaster:MoinPagesEditorGroup.
##master-page:HelpOnInstalling
##master-date:2006-01-02 07:26:51
#acl MoinPagesEditorGroup:read,write,delete,revert All:read
#format wiki
#language zh
["帮助目录"] > ["帮助-系统管理"] > ["帮助-安装"]

[[TableOfContents]]

= 如何安装你自己的MoinMoin维基 =
本页面讲解MoinMoin的安装过程. 在下一节中有一系列真实的[#installscenarios Installation Scenarios] 帮助你理解如何在不同环境下应用这些建议. 如果你想升级一个已经在运行中的维基, 请看["帮助-升级"].

Moin``Moin的安装只需一些基本步骤:
 * ["/基本安装"] 详细解释"`setup.py`"的安装步骤. 它将Moin``Moin代码和维基模版安装你的系统上. 这部分适用于所有情况, 在安装之前你应该通读一遍.
 * ["/创建维基例程"] 解释如何创建一个新的维基例程(数据和设置). 这部分也适用于所有情况.
 * 设置网络服务器
  * 确定使用哪一个种解决方案(看下面).
  * Getting the web server to serve static stuff under the `/wiki` URL (url_prefix), used for theme CSS and images, etc. This is slightly different for the various web servers that can be used - see below.
  * Getting the web server to execute the moin code when you access wiki pages. This is done either by CGI, FastCGI, mod_python or Twisted or the built-in stand alone server - this is slightly different for the various web servers that can be used - see below.
 * 安装成功后, 你可以阅读有关维基管理员所能进行的设置以及其他选项的文档. ["帮助-系统管理"]包含相关主题的页面链接. 特别是["帮助-系统设置"]和["帮助-升级"]页面提供了关于维基安装和维护的更多信息.
 * ["/问题解答"]帮助你解决任意常见问题, 其适用任何安装平台. 

[[Anchor(installscenarios)]]
= Installation scenarios =

The following subpages will show you concrete examples of installation sessions, showing the commands used and explaining what they do. You ''must first read the general information on installing above'' before doing the installation steps described on the pages linked from below:

== 个人维基 ==

个人或者小型工作组使用的维基. 除了Python和MoinMoin之外不需要其他任何东西.

 * ["/独立服务"]
   ''注意:'' 目前独立服务比Twisted快, 但不支持多界面/端口.

== 使用CGI的公共维基 ==

CGI经过良好测试，设置简单但是运行速度慢.

 * ["/Apache和Linux"]
 * ["/Apache和LinuxFtp"]
  * 如果你有FTP权限, 可以选择这种方式.
 * ["/Apache和MacOsx"]
 * ["/Apache和Win32"]
 * ["/InternetInformationServer"]
 * ["/WebLogic"]
 * ["/AolServer"]

== 独立模式 ==

速度很快，可以运行在Apache的mod_proxy模式下.

== 高性能公共维基 ==

速度比CGI快得多, 但是相对难以安装和设置.

 * /TwistedWeb 
 * /FastCgi - 在Apache和Lighttpd服务器上使用[http://fastcgi.com/ FastCgi]
 * ["/Apache和ModPython"]

== 维基农场 ==

一份moinmoin源代码拷贝可以用于运行多个维基. 为你的维基创建一个目录, 然后在它下面, 按照[/创建维基例程]的指示创建两个data树. 在配置目录下(默认值是''/usr/share/moin/''config), 你会看到一个'''farmconfig.py'''的示例文件. 把它拷贝到农场目录, 然后编辑moin的启动脚本 (独立模式对应moin.py, cgi模式对应moin.cgi, 等等.) 把目录指向它.

farmconfig.py为每个维基"树"声明了正则表达式 - 几个树构成一个树农场. 它同时设置'''wikiconfig'''的默认选项(请看["帮助-系统设置"]).

当URL匹配时, 其关键词将用于获得一个附加的(但可选的)配置文件.  这个例子描述了moin主站点和它的文档开发树(moinmoin and moinmaster).  所以, 当你访问 http://moinmoin.wikiwikiweb.de 时, URL匹配''moinmoin'', moinmoin.py是其所寻找的文件(而且与farmconfig.py在同一个目录下).  在moinmoin.py中, 其选项覆盖了farmconfig选项, wikiconfig处理停止, 然后moinmoin data树服务于访问者.

注意, 不匹配正则表达式的URLs不会被moin服务器处理.  如果你在独立模式下, 会出现一个错误页面.  也要注意, 只有关键词中包括''wikiconfig''时wikiconfig.py才会被读取; the farm takes precedence.
