gerrit配置replication插件

最好的配置方法看官方文檔:html

http://192.168.56.104/plugins/replication/Documentation/index.html服務器

 

配置需求:ssh

一臺主gerrit服務器,一臺從gerrit服務器,兩臺gerrit版本相同spa

主服務器能免密登陸從服務器,實現方法以下:htm

將主服務器公鑰考貝到從服務器的authorized_keys文件中blog

例如:文檔

scp  /root/.ssh/id_rsa.pub  root@192.168.1.2:/root/.ssh/authorized_keysget

實現原理:it

從主服務器往從服務器上pushio

配置方法:

在review_site/etc/目錄下配置replication.conf文件

 

 

若是出現如上圖所示紅框部分的錯誤,請在主服務器.ssh/config

中配置以下內容:

Host 192.168.56.104

StrictHostKeyChecking no

相關文章
相關標籤/搜索