欢迎光临散文网 会员登陆 & 注册

Apache+SVN+Review Board代码审核服务器搭建流程

2021-09-28 10:30 作者:Vecloud_  | 我要投稿



Apache+SVN+Review Board代码审核服务器搭建流程 


一、简介代码审查(CodeReview)不但可以提高质量,而且还是一个知识共享和指导的极好的手段。ReviewBoard是一款比较优秀的,开源的基于WEB的代码审查工具。 


二、准备工作2.1、安装依赖包yum-yinstallgccgcc-c++makecmakeautoconfautomakelibffilibffi-develncurses*bison*zlib*expat*openssl*apr*neon* 

2.2、安装Apacheyum-yinstallhttpdhttpd-devel 

2.3、安装MySQLyum-yinstallmysqlmysql-servermysql-develmysql-pythonservicemysqldstart 


登录MySQL创建reviewboard数据库和reviewboard用户 
mysql–uroot–p>createdatabasereviewboarddefaultcharsetutf8collateutf8_general_ci;>grantallonreviewboard.*to'reviewboard'@'localhost'identifiedby'reviewboard'; 

2.4、安装memcachedyum-yinstallmemcachedpython-memcachedservicememcachedstart 

2.5、安装patchyum-yinstallpatch 

2.6、安装Pythonyum-yinstallpythonpython-devel 

2.7、安装python-subvertpy pysvn如果python版本为2.6(CentOS6.x),可以采用EPEL yum源进行下载 
(1)、rpm-ivhhttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum-yinstallpython-subvertpypysvn(安装yum源EPEL红帽企业库,centos默认yum源库中没有pysvn) 



(2)、yum--enablerepo=epelinstallpysvnpython-subvertpy(指定在EPEL yum源中,下载pysvn,python-subvertpy) 


CentOS7.x 安装EPEL源 
rpm-ivhhttp://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 

三、开始安装3.1、安装easy_installdistribute从0.7版本后就和setuptools合并在一起了,所以先删除旧版(setuptools)easy_install。 
第一步:删除easy_install 
rm-f/usr/bin/easy_install*rm-f/usr/local/bin/easy_install* 


第二步:安装distribute 
wgethttps://svn.apache.org/repos/asf/oodt/tools/oodtsite.publisher/trunk/distribute_setup.pypythondistribute_setup.pyrmdistribute_setup.py 


3.2、安装ReviewBoardeasy_installreviewboardrb-siteinstall/var/www/html/reviewboard 

根据情况配置以下内容 
DomainName:192.168.2.41RootPath[/]:DatabaseType:mysqlDatabaseName[reviewboard]:DatabaseServer[localhost]:DatabaseUsername:reviewboardDatabasePassword:ConfirmDatabasePassword:MemcacheServer[localhost:11211]:Username[admin]:adminPassword:ConfirmPassword:E-MailAddress:public@unilifemedia.comCompany/OrganizationName(optional):unilifemediaAllowustocollectsupportdata?[Y/n]: 

3.3、配置reviewboard目录权限chown-Rapache.apache/var/www/html/reviewboard/htdocs/chown-Rapache.apache/var/www/html/reviewboard/data 

3.4、配置reviewboard把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 
servicehttpdrestart 

四、后台配置登录:http://192.168.2.41/ 
输入刚才配置的admin密码

了解更多网络知识关注:http://www.vecloud.com/

Apache+SVN+Review Board代码审核服务器搭建流程的评论 (共 条)

分享到微博请遵守国家法律