Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apache+SVN+Review Board Code Review Server Building process

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Apache+SVN+Review Board Code Review Server Building process

I. brief introduction

Code review (CodeReview) can not only improve quality, but also an excellent means of knowledge sharing and guidance. ReviewBoard is an excellent, open source WEB-based code review tool.

Second, the preparation work 2.1.Installing the dependency package yum-y install gcc gcc-c++ make cmake autoconfautomake libffi libffi-devel ncurses* bison* zlib* expat* openssl* apr* neon*

2.2.install Apacheyum-y install httpd httpd-devel

Install MySQLyum-y install mysql mysql-server mysql-devel mysql-pythonservice mysqld start

Log in to MySQL to create a reviewboard database and reviewboard user

Mysql-uroot-p > create database reviewboard default charset utf8collate utf8_general_ci; > grant all on reviewboard.* to'reviewboard'@'localhost' identified by 'reviewboard'

Install memcachedyum-y install memcached python-memcachedservice memcached start

Install patchyum-y install patch

Install Pythonyum-y install python python-devel

2.7. install python-subvertpy pysvn

If the python version is 2.6 (CentOS6.x), you can download it using the EPEL yum source

(1), rpm-ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum-y installpython-subvertpy pysvn

(install the YumSource EPEL Red Hat Enterprise Library. There is no pysvn in the centos default yum source library)

(2), yum-enablerepo=epel install pysvnpython-subvertpy

(specify to download pysvn,python-subvertpy in the EPEL yum source)

CentOS7.x install EPEL source

Rpm-ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Start installation 3. 1. Install easy_install

Distribute has been merged with setuptools since version 0. 7, so delete the setuptools easy_install first.

Step 1: delete easy_install

Rm-f / usr/bin/easy_install*rm-f / usr/local/bin/easy_install*

Step 2: install distribute

Wget https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.pypython distribute_setup.pyrm distribute_setup.py

Install ReviewBoardeasy_install reviewboardrb-site install / var/www/html/reviewboard

Configure the following as appropriate

Domain Name: 192.168.2.41Root Path [/]: Database Type: mysqlDatabase Name [reviewboard]: Database Server [localhost]: Database Username: reviewboardDatabase Password: Confirm Database Password:Memcache Server [localhost:11211]: Username [admin]: adminPassword: Confirm Password: E-Mail Address: public@unilifemedia.comCompany/Organization Name (optional): unilifemediaAllow us to collect support data? [Y/n]:

Configure reviewboard directory permissions chown-R apache.apache/var/www/html/reviewboard/htdocs/chown-R apache.apache/var/www/html/reviewboard/ data

3.4.Configuring reviewboard

Put the apache-wsgi.conf configuration file in the conf.d directory of Apache

Cp / var/www/html/reviewboard/conf/apache-wsgi.conf/etc/httpd/conf.d/

Configure a domain name or IP that allows access to reviewboard

Vi/var/www/html/reviewboard/conf/settings_local.py

ALLOWED_HOSTS = ['192.168.2.41', the last codereviewboard.unilifemedia.com']

Restart Apache

Service httpd restart

IV. Background configuration

Login: http://192.168.2.41/

Enter the admin password you just configured

4.1. Enter the administrator backend

4.2. Configure to send mail

4.3. Configure the audit code repository

Enter the name, SVN warehouse address, user name and password.

4.4. Add users

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report