Install Confluence

Download Confluence-9.2.5-x64.bin file from: https://www.atlassian.com/software/confluence/download-archives

wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-9.2.5-x64.bin
chmod +x Confluence-9.2.5-x64.bin
./Confluence-9.2.5-x64.bin
  • Installation Directory: /opt/atlassian/confluence
  • Home Directory: /var/atlassian/application-data/confluence
  • HTTP Port: 8090
  • RMI Port: 8000

Install Postgres & Setup User and Database

sudo apt-get install postgresql postgresql-contrib
sudo -u postgres psql
CREATE USER confluenceuser WITH PASSWORD 'password';
GRANT ALL ON SCHEMA public TO confluenceuser; 
CREATE DATABASE confluence ENCODING 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8' TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE confluence TO confluenceuser;
ALTER DATABASE confluence OWNER TO confluenceuser;
exit;
  • database: confluence
  • database default port: 5432
  • user: confluenceuser
  • password: password

Configure Confluence

Open http://localhost:8090/ in browser.

Follow through the steps.