免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5137 | 回复: 0
打印 上一主题 下一主题

在 Ubuntu 7.04 下安装MoinMoin(standalone server模式) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-05-18 17:10 |只看该作者 |倒序浏览

                MoinMoin可以在以standalone server模式下运行。在这种模式下不需要http服务器,只要安装python和moinmoin就可以在浏览器中使用wiki。
以下是我的安装步骤:
1.在新立得软件包管理器中安装moinmoin-common和python-moinmoin这两个软件包
2.创建一个moinmoin的实例(我安装的路径为/yt,你可以用你自己的路径替换)
mkdir /yt
cd /yt
cp -R /usr/share/moin/data .
cp -R /usr/share/moin/underlay/ .
cp /usr/share/moin/config/wikiconfig.py .
cp /usr/share/moin/server/moin.py .
3.修改/yt/moin.py中的内容如下:
# Path of the directory where wikiconfig.py is located.
# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
sys.path.insert(0, '/yt')  <==修改
# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
# or if you did not use setup.py.
sys.path.insert(0, '/usr/share/python-support/python-moinmoin/MoinMoin')  <==修改
# Path of the directory where farmconfig is located (if different).
sys.path.insert(0, '/yt')  <==修改
# Debug mode - show detailed error reports
## import os
## os.environ['MOIN_DEBUG'] = '1'
from MoinMoin.server.standalone import StandaloneConfig, run
class Config(StandaloneConfig):
    # Server name
    # Used to create .log, .pid and .prof files
    name = 'moin'
    # Path to moin shared files (default '/usr/share/moin/wiki/htdocs')
    # If you installed with --prefix=PREFIX, use 'PREFIX/share/moin/wiki/htdocs'
    docs = '/usr/share/moin/htdocs'
    # The server will run with as this user and group (default 'www-data')
    user = '这里填你的用户名'  <==修改
    group = '这里填你的组名'  <==修改
4.在终端中运行: python /yt/moin.py,如果出现Serving on 127.0.0.1:8000 ,则说明可以使用了。
5.打开浏览器,在地址中输入“http://127.0.0.1:8000",出现MoinMoin的页面。
参考资料:http://moinmoin.wikiwikiweb.de/HelpOnInstalling/StandaloneServer
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/7894/showart_304209.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP