该过程基础官方2.14.6版本,文档连接:gerrit-documentation.storage.googleapis.com/Documentati…
前期工作:
- 安装java运行环境,推荐1.8版本
- 安装git,Gerrit是基于git版本管理工具开发的代码审查工具
- 安装数据库,可选。Gerrit默认使用内置H2数据库,其他可选数据库见官方安装文档
- 安装nginx,进行反向代理,可选。如果Gerrit使用http方式,需要服务器添加header内容。参考配置:
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" '