reviewboard 安装
环境准备
- centos7
- python 2.7.5
- pip
- gcc
- Activate Apache (httpd)
pip 安装
- 下载pip最新包
- 解压后运行命令
python setup.py install
Apache 安装
sudo yum install httpd.x86_64
sudo systemctl start httpd.service
Apache 安装mod_wsgi
$wget https://pypi.python.org/packages/28/a7/de0dd1f4fae5b2ace921042071ae8563ce47dac475b332e288bc1d773e8d/mod_wsgi-4.5.7.tar.gz
$tar xzf mod_wsgi-4.5.7.tar.gz
$cd mod_wsgi-4.5.7/
$./configure --with-apxs=/usr/bin/apxs --with-python=/usr/bin/python
$sudo make && make install
$cd ../
apache 启动 模块
sudo vim /etc/httpd/conf/httpd.conf
LoadModule wsgi_module modules/mod_wsgi.so
mysql client安装
yum install python-devel mysql-devel -y
pip install mysqlclient
安装 reviewboard
-
reviewboard安装
sudo pip install ReviewBoard
-
网站部署
sudo rb-site install /var/www/review
-
修改配置
/conf/apache-wsgi.conf
修改 DEBUG=True -- enable debug DISABLE_FOLLOW_MENU = True -- disabled follow menu
建立配置软连接
sudo ln -s /var/www/review/conf/apache-wsgi.conf /etc/httpd/conf.d/review.conf