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

怎么搭建gerrit代码审查服务

2021-11-19 11:03 作者:Vecloud_  | 我要投稿


exportJAVA_HOME=/usr/local/jdk1.8.0_161exportJRE_HOME=$JAVA_HOME/jreexportCLASSPATH=$JAVA_HOME/libexportPATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin:$CLASSPATH[gerrit]basePath=git//指定被gerrit管理的所有git库存放位置,即review_site_project/git/canonicalWebUrl=http://192.168.0.20:8081///指定web访问gerrit的网址//填自己的ip和端口号[database]type=h3//指定gerrit所默认数据库类型,可以选用mysql,安装并创建gerrit账户database=db/ReviewDB[auth]type=HTTP//指定浏览器登录gerrit时的认证方式[sendemail]enable=truesmtpServer=smtp.126.comsmtpServerPort=25smtpUser=xxx@126.comsmtpPass=xxxsslVerify=falsefrom=CodeReview<xxx@126.com>[container]user=gerritserver//指定gerrit所在机器的用户身份与上文创建的用户对应一致javaHome=/usr/lib/jvm/jdk7/jre//系统本身自带[sshd]listenAddress=*:29418//指定sshd服务监听的端口号[httpd]listenUrl=http://*:8081/project//指定http代理地址[cache]directory=cache//缓存位置server{listen80;server_namelocalhost;#charsetkoi8-r;#access_loglogs/host.access.logmain;location/{#roothtml;#indexindex.htmlindex.htm;auth_basic"WelcometoGerritCodeReview!";auth_basic_user_file/home/gerrit/gerrit.passwd;proxy_passhttp://127.0.0.1:8081;proxy_set_headerX-Forwarded-For$remote_addr;proxy_set_headerHost$host;}#error_page404/404.html;#redirectservererrorpagestothestaticpage/50x.html#error_page500502503504/50x.html;location=/50x.html{roothtml;}touch./review_site/etc/passwdhtpasswd-b./review_site/etc/passwdgerritgerrit步骤五:测试,访问: http://192.168.0.20 ,用gerrit用户登录
以上是“CentOS7怎么搭建gerrit代码审查服务”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注http://www.vecloud.com/资讯频道!


怎么搭建gerrit代码审查服务的评论 (共 条)

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