日期:2014-05-17 浏览次数:20817 次
花了大半天的时候装了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