Gerrit 在Fedora上的安装配置
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 的配置文件 /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.0.0.1:8080/gerrit/
- </VirtualHost>
Fedora 上的sun jre 配置的命令:
- sudo chmod +x ./jre-6u27-linux-i586-rpm.bin
- sudo ./jre-6u27-linux-i586-rpm.bin
- sudo alternatives --install /usr/bin/java java /usr/java/jre1.6.0_27/bin/java 20000
- sudo alternatives --config java
- java -version
相关推荐
86477414 2020-03-07
IT之家 2020-03-11
graseed 2020-10-28
zbkyumlei 2020-10-12
SXIAOYI 2020-09-16
jinhao 2020-09-07
impress 2020-08-26
liuqipao 2020-07-07
淡风wisdon大大 2020-06-06
yoohsummer 2020-06-01
chenjia00 2020-05-29
baike 2020-05-19
扭来不叫牛奶 2020-05-08
hxmilyy 2020-05-11
黎豆子 2020-05-07
xiongweiwei00 2020-04-29
Cypress 2020-04-25
冰蝶 2020-04-20