1. show variables like 'character%';
2.
3. #显示如下信息
4. +--------------------------+---------------------------------------------
------------+
5. |Variable_name|Value
|
6. +--------------------------+---------------------------------------------
------------+
7. | character_set_client | utf8
|
8. | character_set_connection | utf8
|
9. | character_set_database | utf8
|
10. | character_set_filesystem | binary
|
11. | character_set_results | utf8
|
12. | character_set_server | utf8
|
13. | character_set_system | utf8
|
14. | character_sets_dir | C:\Program Files\MySQL\MySQL Server5.6\sh
are\charsets\ |
15. +--------------------------+---------------------------------------------
------------+
2. 安装Apache
完成后确认在Windows服务中启动并且在浏览器中输入localhost检查是否启动正常。
3. 安装Python
注意要把python27和python27/scripts目录放到环境变量中
4. 安装mod_python-3.3.1.win32-py2.7.exe
注意:安装mod_python的时候,需要停掉apache,安装后请检查apache的modules目录下是否有mod_python.so,如果没有请检查安装是否过程是否有问题
5. 安装py27-pysvn-svn1811-1.7.10-1584.exe
6. 安装setuptools-0.6c11.win32-py2.
7.exe
7. 安装patch-2.5.9-7-setup.exe
8. 安装memcached
1. #1.解压memcached-win64-1.4.4-14.zip到E:\Tools\memcached
2.
3. #2.进入E:\Tools\memcached
4.
5. #3.执行命令,安装memcached为系统服务
6. memcached.exe -d install
9. 安装python-memcached
1. #1. 解压python-memcached-latest.tar.gz
2.
3. #2. 执行安装命令
4. python setup.py install
10. 安装MySQL-python-1.2.5.win32-py2.7.exe
11. 安装pycrypto-2.6.1.win32-py2.7.exe
解决编译安装时出现以下错误:
1. Downloading
https://https://www.wendangku.net/doc/223841832.html,/packages/source/p/pycrypto/pycrypto-2.6.1.ta
2. r.gz#md5=55a61a054aa66812daf5161a0d5d7eda
3. Processing pycrypto-2.6.1.tar.gz
4. Running pycrypto-2.6.1\setup.py -q bdist_egg --dist-dir c:\users\ch\app
data\loca
5. l\temp\easy_install-sby0sc\pycrypto-2.
6.1\egg-dist-tmp-wvzthp
6. warning: GMP or MPIR library not found;Not building Crypto.PublicKey.
_fastmath.
7.
8. gcc: error: unrecognized command line option '-mno-cygwin'
9. error:Setup script exited with error: command
'C:\\cygwin64\\bin\\gcc.exe' fail
10. ed with exit status 1
12. 安装ReviewBoard
1. #执行命令
2. easy_install ReviewBoard
3.
4. #安装指定版本ReviewBoard
5. easy_install "ReviewBoard<2.0"
ReviewBoard配置
1. #创建数据库
2. create database reviewboard character set utf8;
3.
4. #创建用户(下面会用到)
5. create user 'reviewboard'@'localhost' identified by'reviewboard';
6.
7. #给用户授权
8. grant all privileges on reviewboard.* to 'reviewboard'@'localhost';
1. # 执行命令
2. rb-site install e:\tools\reviews
3.
4. #按要求填写相关要素即可
1.
2. ServerName https://www.wendangku.net/doc/223841832.html,
3. DocumentRoot "E:/Tools/reviews/htdocs"
4.
5. # Error handlers
6. ErrorDocument 500 /errordocs/500.html
7.
8. WSGIPassAuthorization On
9. WSGIScriptAlias "/" "E:/Tools/reviews/htdocs/reviewboard.wsgi/"
10.
11.
12. AllowOverride All
13. Options -Indexes +FollowSymLinks
14. Allow from all
15.
16.
17. # Prevent the server from processing or allowing the rendering of
18. # certain file types.
19.
20. SetHandler None
21. Options None
22.
23. AddType text/plain .html .htm .shtml .php .php3 .php4 .php5 .ph
ps .asp
24. AddType text/plain .pl .py .fcgi .cgi .phtml .phtm .pht .jsp
.sh .rb
25.
26.
27. php_flag engine off
28.
29.
30.
31. # Alias static media requests to filesystem
32. Alias /media "E:/Tools/reviews/htdocs/media"
33. Alias /static "E:/Tools/reviews/htdocs/static"
34. Alias /errordocs "E:/Tools/reviews/htdocs/errordocs"
35. Alias /favicon.ico
"E:/Tools/reviews/htdocs/static/rb/images/favicon.png"
36.
1. # DEBUG模式改为False
2. DEBUG =False# 由True到False,这个我也做对了
3.
4. # 添加可访问主机
5. ALLOWED_HOSTS =['https://www.wendangku.net/doc/223841832.html,','localhost','192.168.0.112']
1. 客户端:http://[ip]:[port]
2. 管理端:http://[ip]:[port]/admin