In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Gerrit web Building Manual
Install openjdk 7
# apt-get install openjdk-7-jdk
Install apache2
# apt-get install apache2
Install the PostgreSQL database
# apt-get install postgresql
# passwd postgres (modify postgres password, default is: postgres)
# su-postgres
$createuser-- username=postgres-RDIElPS gerrit2 ("l" is the letter)
$createdb-- username=postgres-E UTF-8-O gerrit2reviewdb ("O" is uppercase)
Install and configure gerrit
Download URL: https://gerrit-releases.storage.googleapis.com/gerrit-2.11.war
Installation and configuration:
$java-jar gerrit.war init-d review_site
Create'/ home/zhi.yang/review_site' [YBO]? Y-create a review_site folder
Location of Gitrepositories [git]:
Database servertype [H2max?]: postgresql-the type of database is selected postgresql
Gerrit Code Reviewis not shipped with MySQL Connector/J 5.1.10
* * This library is required for yourconfiguration. **
Download and installit now [Y/n]? Y-download and install mysql-related lib libraries
Usemysql-connector-java-5.1.10.jar anyway [y/n]? Y
Serverhostname [localhost]:
Server port [(postgresql default)]:
Database name [reviewdb]:-the name of the database is reviewdb. Enter directly.
Databaseusername [gerrit2]:-the user of the database is gerrit2. Enter directly.
Gerrit2'spassword:-enter the password for gerrit2. The password of the gerrit2 should be distinguished from that of the ubuntu system. The password entered here should be the password of the gerrit2 user in the database.
Authenticationmethod [OPENID/?]: ldap- chooses user authentication method
LDAP server [ldap://localhost]: ldap://10.0.0.9:3268
LDAP username: gerrit
Gitserver's password: *
Confirm password: *
Account BaseDN [DC=0,DC=0,DC=98:3268]: DC=ming,DC=com
Group BaseDN [DC=ming,DC=com]:
Install Verifiedlabel [y/N]?
SMTP serverhostname [localhost]:
SMTP serverport [(default)]:
SMTPencryption [NONE/?]:
SMTP username:
Run as [zhi.yang]:
Java runtime [/ usr/lib/jvm/java-7-openjdk-amd64/jre]:
Copy gerrit.war to/home/gerrit2/review_site/bin/gerrit.war [Y/n]?
Listen onaddress [*]:
Listen on port [29418]:
Gerrit Code Reviewis not shipped with Bouncy Castle Crypto v144
If available, Gerrit can take advantage offeatures
In the library, but will also functionwithout it.
Download andinstall it now [Y/n]?
Press enter tocontinue
Continue withoutthis library [Y/n]?
Behind reverseproxy [y/N]?
Use SSL (https://) [yplink N]?
Listen onaddress [*]:
Listen on port [8080]:
Canonical URL [http://archivebak.ming.com:8080/]:
Install plugindownload-commands version v2.11 [y/N]?
Install pluginreviewnotes version v2.11 [y/N]?
Install pluginsingleusergroup version v2.11 [y/N]?
Install pluginreplication version v2.11 [y/N]?
Install plugincommit-message-length-validator version v2.11 [y/N]?
Initialized/home/zhi.yang/review_site
Start, shut down, restart gerrit
$. / review_site/bin/gerrit.sh start/stop/restart
Visit:
Http://ip:8080
Note:
If you do not want to use port 8080, change it in ~ / review_site/etc/gerrit.config, and then restart gerrit (however, it is recommended to use the default 8080 when installing, and then change it after installation)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.