您好,登錄后才能下訂單哦!
Apache+SVN+Review Board代碼審核服務器搭建流程
代碼審查(CodeReview)不但可以提高質量,而且還是一個知識共享和指導的極好的手段。ReviewBoard是一款比較優秀的,開源的基于WEB的代碼審查工具。
yum -y install gcc gcc-c++ make cmake autoconfautomake libffi libffi-devel ncurses* bison* zlib* expat* openssl* apr* neon*
yum -y install httpd httpd-devel
yum -y install mysql mysql-server mysql-devel mysql-python service mysqld start
登錄MySQL創建reviewboard數據庫和reviewboard用戶
mysql –uroot –p >create database reviewboard default charset utf8collate utf8_general_ci; >grant all on reviewboard.* to'reviewboard'@'localhost' identified by 'reviewboard';
yum -y install memcached python-memcached service memcached start
yum -y install patch
yum -y install python python-devel
如果python版本為2.6(CentOS6.x),可以采用EPEL yum源進行下載
(1)、 rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm yum -y installpython-subvertpy pysvn
(安裝yum源EPEL紅帽企業庫,centos默認yum源庫中沒有pysvn)
(2)、 yum --enablerepo=epel install pysvnpython-subvertpy
(指定在EPEL yum源中,下載pysvn,python-subvertpy)
CentOS7.x 安裝EPEL源
rpm -ivhhttp://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
distribute從0.7版本后就和setuptools合并在一起了,所以先刪除舊版(setuptools)easy_install。
第一步:刪除easy_install
rm -f /usr/bin/easy_install* rm -f /usr/local/bin/easy_install*
第二步:安裝distribute
wget https://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.py python distribute_setup.py rm distribute_setup.py
easy_install reviewboard rb-site install /var/www/html/reviewboard
根據情況配置以下內容
Domain Name: 192.168.2.41 Root Path [/]: Database Type: mysql Database Name [reviewboard]: Database Server [localhost]: Database Username: reviewboard Database Password: Confirm Database Password: Memcache Server [localhost:11211]: Username [admin]: admin Password: Confirm Password: E-Mail Address: public@unilifemedia.com Company/Organization Name (optional): unilifemedia Allow us to collect support data? [Y/n]:
chown -R apache.apache/var/www/html/reviewboard/htdocs/ chown -R apache.apache /var/www/html/reviewboard/data
把apache-wsgi.conf配置文件放到Apache的conf.d目錄下
cp /var/www/html/reviewboard/conf/apache-wsgi.conf/etc/httpd/conf.d/
配置允許訪問reviewboard的域名或IP
vi/var/www/html/reviewboard/conf/settings_local.py
ALLOWED_HOSTS =['192.168.2.41','codereviewboard.unilifemedia.com']
重啟Apache
service httpd restart
登錄:http://192.168.2.41/
輸入剛才配置的admin密碼
輸入名稱,SVN倉庫地址,用戶名密碼。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。