由於工作上需要,必須在mac mini上架設gerrit server,網路上資源有限且零散,
故在此分享完整攻略,願能幫助到有同樣需求的大大,廢話不多說,跟著我一步一步做就對了。
p.s. 安裝Gerrit基本需要3樣套件 apache / mysql / postfix,mac 本身有內建 apache / postfix,而mysql 可以透過 brew install mysql 輕鬆取得,備妥這三樣法寶就可以跟著下面步驟完成安裝囉
STEP 1.設定reverse proxy
*編輯/etc/apache2/httpd.conf
*先搜尋Include /private/etc/apache2/other/*.conf
*在這行之前新增內容如下
#
# Proxy Server directives.
#
<IfModule mod_proxy.c>
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>