千家信息网

如何安装配置ReviewBoard

发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,Review Board起源于VMware的一些开发者。它基于Django,你可以把它安装在自己的服务器上,工作流和Rietveld极为类似。令人高兴的是它提 供了在diffs里进行语法彩色编码,使得
千家信息网最后更新 2026年11月03日如何安装配置ReviewBoard

Review Board起源于VMware的一些开发者。它基于Django,你可以把它安装在自己的服务器上,工作流和Rietveld极为类似。令人高兴的是它提 供了在diffs里进行语法彩色编码,使得代码阅读变得简便。此外,它还实现了基于Lucene的搜索来帮助管理较大的diffs组。

Review Board在审查补丁(Patch)方面表现完美。一个叫做"提交审查"的工具被用来和SCM系统进行连接(当前支持SVN、CVS、Perforce、Git和Mercurial等),可以允许你请求一个将被提交的修改的审查。用户基础页面将这个过程描述如下:

  1. 你在本地检出的代码上做了些可怕的修改。
  2. 你通过公布diff、编写描述和选择一些审查者来创建一个审查请求。
  3. 你在审查请求中点击"发布"并等待你的审查者看到它。
  4. 其他人看了你的审查请求,说道"这太可怕了,除非什么东西坏掉了。"
  5. 你根据他们的评论更新了你的代码。
  6. 你公布了更新后的diff,以及对他们评论的解答以指明你修改了什么(或者你要说明为什么你不打算按照他们的建议修改代码)。
  7. 大家看了你更新后的代码,并请你继续。
  8. 你将修改提交到仓库中。
  9. 你在审查请求中点击"设置为已提交"来从其他人的面板中移除你的审查请求。

环境准备:

阿里云ecs机器,2核4G100G盘,centos7.6

软件需求:

httpd,python,mysql,memcached,ReviewBoard

安装环境:

yum install wget vim lrzsz unzip git -y

更新系统包

yum updateyum -y install epel-releaseyum install initscripts -yyum -y install python-pipyum install python-setuptools -yyum install python-devel -yyum install gcc python-devel libffi-devel openssl-devel patch -y

安装httpd

yum install httpd -yyum install mod_wsgi -y

安装数据库

yum install mysql-devel -yyum install mysql-server -yyum install mariadb* -y

安装 memcache

yum install memcached -yyum install python-memcached -y

安装reviewboard

pip install -U pip setuptoolspip install mysql-pythonyum install ReviewBoard  -y    ##pip install ReviewBoard## easy_install mercurial   easy_install P4PythonInstaller

创建数据库

systemctl start mariadbmysql > create database reviewboard default charset utf8 collate utf8_general_ci;mysql > grant all privileges on reviewboard.* to 'reviewboard'@'127.0.0.1' identified by 'reviewboard';mysql > grant all privileges on reviewboard.* to 'reviewboard'@'%' identified by 'reviewboard';mysql > flush privileges;

创建站点

rb-site install /var/www/reviewboard
Domain Name: 192.168.4.101(本机ip作为web站点) Root Path [/]: / Database Type: mysql Database Name [reviewboard]: reviewboard (使用创建的数据库) Database Server [localhost]: 127.0.0.1 Database Username: reviewboard Database Password: reviewboard Cache Type: memcached Memcache Server [localhost:11211]: localhost:11211 Username [admin]: admin Password: ******** (设置登录页面admin密码) E-Mail Address: 111111111@qq.com Company/Organization Name (optional): * (可以填写自己的标识)Allow us to collect support data? [Y/n]: (可以直接回车)

配置修改

/var/www/reviewboard/conf/settings_local.py ALLOWED_HOSTS=[ '*']    ##让web接受访问chown -R apache:apache /var/www/reviewboard/cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/httpd/conf.d/cat /var/www/reviewboard/conf/apache-wsgi.conf >> /etc/httpd/conf/httpd.conf

启动服务

service memcached startservice httpd restart

访问页面:http://192.168.4.101/

使用https和域名访问:

创建证书目录mkdir -p /etc/apache2/ssl/cd /etc/apache2/ssl/rz  上传证书[root@localhost ~]# ll /etc/apache2/ssl/total 8-rw-r--r-- 1 root root 1679 Nov 13 14:10 superlee.com.key-rw-r--r-- 1 root root 3912 Nov 13 14:10 superlee.com.pem
安装mod_sslyum install mod_ssl openssl -ya2enmod ssla2ensite default-ssl

修改httpd配置

    AllowOverride All    RewriteEngine on    RewriteCond %{SERVER_PORT} !^443$    RewriteRule ^(.*)?$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]        ServerName reviewboard.tuosuperlee.com        DocumentRoot "/var/www/reviewboard/htdocs"        SSLEngine on        SSLCertificateFile      /etc/apache2/ssl/superlee.com.pem        SSLCertificateKeyFile /etc/apache2/ssl/superlee.com.key        # Error handlers        ErrorDocument 500 /errordocs/500.html        WSGIPassAuthorization On        WSGIScriptAlias "/" "/var/www/reviewboard/htdocs/reviewboard.wsgi/"                        AllowOverride All                Options -Indexes +FollowSymLinks                Require all granted                # Prevent the server from processing or allowing the rendering of        # certain file types.                        SetHandler None                Options None                AddType text/plain .html .htm .shtml .php .php3 .php4 .php5 .phps .asp                AddType text/plain .pl .py .fcgi .cgi .phtml .phtm .pht .jsp .sh .rb                                        php_flag engine off                                # Force all uploaded media files to download.                                        Header set Content-Disposition "attachment"                                # Alias static media requests to filesystem        Alias /media "/var/www/reviewboard/htdocs/media"        Alias /static "/var/www/reviewboard/htdocs/static"        Alias /errordocs "/var/www/reviewboard/htdocs/errordocs"        Alias /favicon.ico "/var/www/reviewboard/htdocs/static/rb/images/favicon.png"

重启httpd

systemctl restart httpd

浏览器访问域名:

 访问reviewboard.superlee.com 自动跳转443

附:综合源history记录

    2  df -h    3  yum install wget vim lrzsz unzip -y    4  yum install git -y    5  yum install httpd -y    6  yum update    7  yum install mod_wsgi -y    8  ll /etc/httpd/conf.d/wsgi.conf    9  yum install initscripts   10  yum -y install epel-release   11  yum -y install python-pip   12  yum install python-setuptools   13  yum install python-devel   14  yum install mod_wsgi   15  yum install memcached -y   16  yum install gcc python-devel libffi-devel openssl-devel patch -y   17  yum install mysql-devel    18  yum install mysql-server    19  yum install mariadb*   20  pip install -U pip setuptools   21  pip install mysql-python   22  mysql   23  systemctl start mariadb   24  mysql   25   yum install ReviewBoard   26   pip install ReviewBoard   27  yum install git-core   28  easy_install mercurial   29  easy_install P4PythonInstaller   30  rb-site install /var/www/reviewboard   31  chown -R apache:apache /var/www/reviewboard/   32  cp /var/www/reviewboard/conf/apache-wsgi.conf /etc/httpd/conf.d/   33  cat /var/www/reviewboard/conf/apache-wsgi.conf >> /etc/httpd/conf/httpd.conf   34  service memcached start   35  service httpd restart   36  history    37  ll /etc/apache2/ssl/   38  ll /etc/apache2/ssl   39  ll /etc/apache2/   40  mkdir -p /etc/apache2/ssl/   41  cd /etc/apache2/ssl/   42  rz   43  ll   44  yum install mod_ssl openssl   45  a2enmod ssl   46  a2ensite default-ssl   47  vi /etc/httpd/conf/httpd.conf    48  systemctl restart httpd   49  vi /var/www/reviewboard/conf/settings_local.py   50  systemctl restart httpd
代码 更新 数据 数据库 页面 配置 可怕 域名 环境 站点 证书 服务 评论 简便 较大 高兴 东西 仓库 基础 密码 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 互联网科技活动banner 互联网科技行业发展 互联网科技公司官网 亿策互联网科技 互联网科技公司介绍 成都仁贤领冠互联网科技有限公司 哈尔滨新华互联网科技学院 中国科技互联网公司收入 晓花互联网科技有限公司网址 互联网与医疗科技 乌苏新华互联网科技做什么的 长沙茂晟互联网科技有限公司 互联网科技如何创业 互联网科技公司营业执照怎么办理 黑云互联网科技有限公司 互联网科技融合创新 2021世界互联网领先科技成果发布 广州梦谷互联网科技有限公司领导 科技互联网经济论坛 颐高云石互联网科技 互联网科技公司简介 百单互联网科技有限公司 互联网 视角下的科技创新 互联网科技公司需要的职位 承德科技产业互联网发展 重庆威客帮互联网科技 互联网第三次科技革命特征 工业互联网科技创业 广州互联网高科技取餐柜 互联网科技创新创业项目
0