Edited at

俺でもわかるConfluenceのインストール

俺です。

Atlassian人の高みを目指すためにConfluenceを入れることにしました。

JIRAはこちらを参照


構成

ALB(https) -> EC2(Confluence http)

Confluence Server Edition


ALB Timeoutの設定


  • Confluenceインストール中にidle timeoutで叩き殺されて504 Bad Gatewayを返さないようにデフォルト60secを300secぐらいに伸ばします(Confluence鯖がt2.mediumの場合)


JREのインストール

# curl -LO -b "oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u192-b12/750e1c8617c5452694857ad95c3ee230/jre-8u192-linux-x64.rpm"

# yum localinstall -y jre-8u192-linux-x64.rpm
# echo "export JAVA_HOME=/usr/java/jre1.8.0_192-amd64" > /etc/profile.d/java_home.sh
# source /etc/profile.d/java_home.sh
# env|grep JAVA
JAVA_HOME=/usr/java/jre1.8.0_192-amd64


Confluenceのインストール


  • installer

[root@ip-172-16-164-20 ec2-user]# ./atlassian-confluence-6.12.2-x64.bin

Unpacking JRE ...
Starting Installer ...

This will install Confluence 6.12.2 on your computer.
OK [o, Enter], Cancel [c]
o
Click Next to continue, or Cancel to exit Setup.

Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]
1

See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence
Home Directory: /var/atlassian/application-data/confluence
HTTP Port: 8090
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]
i

Extracting files ...

Please wait a few moments while we configure Confluence.

Installation of Confluence 6.12.2 is complete
Start Confluence now?
Yes [y, Enter], No [n]
y

Please wait a few moments while Confluence starts up.
Launching Confluence ...

Installation of Confluence 6.12.2 is complete
Your installation of Confluence 6.12.2 is now ready and can be accessed via
your browser.
Confluence 6.12.2 can be accessed at http://localhost:8090
Finishing installation ...


  • server.xml

HTTPS -> HTTP な経路になるのでtomcat自身のProtocolがhttpsであると理解できるようにProxyの設定を修正します。

HTTPS - Proxying Confluence via Apache or Nginx over HTTPS あたりをアンコメントします。

        <Connector port="8090" connectionTimeout="20000" redirectPort="8443"

maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
protocol="org.apache.coyote.http11.Http11NioProtocol"
scheme="https" secure="true" proxyName="confluence.andgate.co.jp" proxyPort="443"/>


  • Confluence再起動

# service confluence stop

# service confluence start
[root@ip-172-16-164-20 conf]# service confluence start

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing using dedicated user: confluence
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
---------------------------------------------------------------------------
Using Java: /opt/atlassian/confluence/jre//bin/java
2018-11-10 01:14:55,162 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required
---------------------------------------------------------------------------
Using CATALINA_BASE: /opt/atlassian/confluence
Using CATALINA_HOME: /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME: /opt/atlassian/confluence/jre/
Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid
Tomcat started.


ブラウザからConfluenceインストールウィザードの実行

いい感じにインストールして終わりです。