安装Jdk apt-get install openjdk-8-jre
安装Apache apt-get install apache2
安装Git apt-get git
Apache配置反向代理
修改文件 vi /etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerName 192.168.1.10
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location "/login/">
AuthType Basic
AuthName "Gerrit Code Review"
Require valid-user
AuthBasicProvider file
AuthUserFile /home/gerrit/passwords
</Location>
AllowEncodedSlashes On
ProxyPass / http://192.168.1.10:8081/
</VirtualHost>
Apache配置 开启SSL、Proxy、Rewrite等模块
cd /etc/apache2/mods-enabled/
ln -s ../mods-available/p