
In diesem Tutorial wird beschreiben wie man die kommerzielle Wiki-Software Confluence der Firma Atlassian auf einem CentOS 7 installiert. Da Atlassian Confluence derzeit nur Support für MySQL bis zur Version 5.6 anbietet werden wie diese verwenden. Der Betrieb von MariaDB wird offiziell nicht unterstützt. Eventuell kann dies zu Problemen im Betrieb führen. Andere Datenbanken z.B. PostgreSQL sind auch möglich.
Vorraussetzung für dieses Tutorial ist wieder eine CentOS 7 mit einer funktionierenden MySQL-Server-Installation der Version 5.6. Ein Tutorial dazu gibt es hier: CentOS 7 – MySQL 5.6, MySQL 5.7 oder aktueller installieren. Alternativ kann auch PostgreSQL verwendet werden eine Installationsanleitung gibt es hier: CentOS 7 – Aktuelle Version von PostgreSQL installieren. In diesem Tutorial beziehen wir uns aber auf die Verwendung von MySQL 5.6.
Installation von Confluence unter CentOS 7
Auf der Download-Seite von Atlassian können wir uns den passenden Installer für Confluence herrunterladen. Derzeit ist die Version 5.9.4 aktuell.
1 |
wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.9.4-x64.bin |
Das Paket ist gut 500 MB groß. Nachdem der Download abgschlossen ist können wir diesen ausführen.
1 2 |
chmod +x atlassian-confluence-5.9.4-x64.bin ./atlassian-confluence-5.9.4-x64.bin |
Bei der Installation von Confluence können wir die Express Variante wählen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
Unpacking JRE ... Starting Installer ... Feb 05, 2016 5:29:00 PM java.util.prefs.FileSystemPreferences$1 run INFORMATION: Created user preferences directory. Feb 05, 2016 5:29:00 PM java.util.prefs.FileSystemPreferences$2 run INFORMATION: Created system preferences directory in java.home. This will install Confluence 5.9.4 on your computer. OK [o, Enter], Cancel [c] 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 Confluence starts up. Launching Confluence ... Installation of Confluence 5.9.4 is complete Your installation of Confluence 5.9.4 is now ready and can be accessed via your browser. Confluence 5.9.4 can be accessed at http://localhost:8090 Finishing installation ... |
Confluence ist installiert und bereits gestartet und lauscht intern auf Port 8090. Wir stoppen Confluence ersteinmal wieder um noch ein paar weitere Konfigurationen vorzunehmen.
1 |
service confluence stop |
Nun sollten Confluence gestoppt sein und keine entsprechenden Java-Prozesse mehr laufen.
CentOS 7 Confluence Systemd Unit File erstellen
Bei der Installation konfiguriert Confluence noch das alte Initd System. Wir wollen dies aber sauber mit Systemd implementieren. Dazu benötigen wir einen Unit File. Dazu wird eine Datei unter /etc/systemd/system/confluence.service erstellt.