小记Windows 下安装Review Board

花了大半天的时候装了Review Board,尤其是最后一步比较辛苦,基本上是一点点调试出来的,在这里记下,留给其他需要帮助的人。

 

1. 安装python 2.5   python-2.5.4.msi    安装在C:\Python25

2. easy_install       setuptools-0.6c11.win32-py2.5.exe

3.设置环境变量         PATH=C:\ Python25;C:\ Python25\Scripts

4.patch工具            patch-2.5.9-7-setup.exe   安装在C:\GnuWin32目录  加System变量 PATH=C:\GnuWin32\bin

5.memcached工具  memcached-1.2.6-win32-bin.zip 运行 memcached.exe –d install 将其安装成服务,并在服务中将其启动

6.安装python-memcached  python-memcached-1.47  CMD: easy_install python-memcached

7.安装Python Imaging Library  PIL-1.1.7.win32-py2.5.exe

8.安装Pycrypto       pycrypto-2.3.win32-py2.5.zip

9.安装reviewboard CMD:easy_install ReviewBoard

不要忘记先装mysql数据库

10.安装Mysql数据库支持  MySQL-python-1.2.2.win32-py2.5.exe

11. 安装svn支持      py25-pysvn-svn161-1.7.0-1177.exe 和 svn 客户端 CollabNetSubversion-client-1.6.16-1.win32.exe

12.安装apache server   httpd-2.2.19-win32-x86-openssl-0.9.8r.msi

13.安装python与apache之间的整合    mod_python-3.3.1.win32-py2.5-Apache2.0.exe

14.开启reviewboard    rb-site install 安装位置(c:\review)

15.最后一步也是最重要的一步:修改apache的conf下的httpd.conf 最后加上

 

LoadModule python_module modules/mod_python.so


DocumentRoot "C:/review/htdocs"

# Error handlers
ErrorDocument 500 /errordocs/500.html

# Serve django pages
<Location "/r/">
	PythonHandler django.core.handlers.modpython
	PythonAutoReload Off
	PythonDebug Off
	# Used to run multiple mod_python sites in the same apache
	PythonInterpreter reviewboard_review
</Location>

# Serve static media without running it through mod_python
# (overrides the above)
<Location "/r/media">
	SetHandler None
</Location>
<Location "/r/errordocs">
	SetHandler None
</Location>

<Directory "c:/review">
	SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
	SetEnv PYTHON_EGG_CACHE "C:/review/tmp/egg_cache"
	SetEnv HOME "C:/review/data"
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    SetHandler mod_python
    AddHandler mod_python .py
    PythonPath "['C:/review/conf'] + sys.path"
    PythonHandler django.core.handlers.modpython  
    PythonDebug On

	PythonInterpreter reviewboard_review
</Directory>

# Alias static media requests to filesystem
Alias /r/media "C:/review/htdocs/media"
Alias /r/errordocs "C:/review/htdocs/errordocs"
 

就能跑成功了 http://lcoalhost/r

 

如果想要更新 版本的话 可以执行下面的命令:

 

easy_install -U ReviewBoard==1.6.3

rb-site upgrade C:/review   // review board version mismatch
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值