Menu Home

gerrit

Gerrit迁移

Gerrit迁移后,首次访问会出现“拒绝访问”错误,解决方案如下: 清除index目录下的索引文件 重建索引 java -jar /home/gerrit2/gerrit_site/bin/gerrit.war reindex

Use Gerrit

Gerrit Workflow Set Permission(Nginx) Create password file htpasswd -c /path/gerrit.password username Add New User htpasswd -m /path/gerrit.password username Nginx Configuration server { listen *:80; server_name gerrit; allow all; deny all; auth_basic “Welcomme to Gerrit !”; auth_basic_user_file /path/gerrit.password; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; } } […]