Review_site/etc/gerrit. config [gerrit] basePath = repositories & nbsp
Review_site/etc/gerrit. config
- [Gerrit]
- BasePath=Repositories
- CanonicalWebUrl=Http: // Xx. x. xx. xxx/gerrit/
- [Database]
- Type=MYSQL
- Hostname=Localhost
- Database=Reviewdb
- Username=Gerrit123
- [Auth]
- Type=HTTP
- LogoutUrl=Http: // Www.windriver.com/
- [Sendemail]
- SmtpSmtpServer= Smtp.mail.yahoo.com.cn
- SmtpUser=Wxbuaa
- SmtpServerPort=465
- SmtpEncryption=SSL
- [User]
- Name=Xxxxx. Xx
- Email=Wxbuaa@ Yahoo.com.cn
- [Container]
- User=Gerrit222
- JavaHome=/Usr/java/jre1.6.0 _ 27/
- [Sshd]
- ListenAddress*: 29418
- [Httpd]
- ListenUrl=Proxy-Http: // *: 8080/gerrit/
- [Cache]
- Directory=Cache
- ~
Apache configuration file/etc/httpd/conf. d/gerrit. conf
- <VirtualHost*: 80>
- ServerName xx. x. xx. xxx
- ProxyRequests Off
- ProxyVia Off
- ProxyPreserveHost On
- <Proxy*>
- Order deny, allow
- Allow from all
- Proxy>
- <Location/Gerrit/>
- AuthType Basic
- AuthName "Gerrit Code Review"
- Require valid-user
- AuthUserFile/home/gerrit2/review_site/etc/passwd
- Location>
- ProxyPass/gerrit/http: // 127.5.0.0.1: 8080/gerrit/
- VirtualHost>
The sun jre configuration command on Fedora:
- Sudo chmod + x./jre-6u27-linux-i586-rpm.bin
- Sudo./jre-6u27-linux-i586-rpm.bin
- Sudo alternatives -- install/usr/bin/java/usr/java/jre1.6.0 _ 27/bin/java 20000
- Sudo alternatives -- config java
- Java-version