Metabase Installation Notes
Server
Published: 2023-03-17

Here are the notes on installing Metabase on Ubuntu 22.04 LTS.

Install Java

The Java Development Kit (JDK) is required.

apt-get install -y default-jdk

Create Metabase Installation Directory

install -d /opt/metabase
cd /opt/metabase

Download Metabase

Download the Metabase binary with the following command:

wget https://downloads.metabase.com/v0.45.3/metabase.jar

Create User and Group

useradd metabase -d /opt/metabase
chown -R metabase:metabase /opt/metabase

Create systemd Service File

Create a systemd service file with the following command:

cat << _EOF_ > /etc/systemd/system/metabase.service
[Unit]
Description=Metabase service
Documentation=https://www.metabase.com/docs/latest

[Service]
WorkingDirectory=/opt/metabase
ExecStart=/usr/bin/java -Xms128m -Xmx256m -jar metabase.jar
User=metabase
Type=simple
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
_EOF_

Enable and Start the Service

Enable and start the service with the following commands:

systemctl daemon-reload
systemctl enable metabase
systemctl start metabase

Now Metabase is installed and running. It will be accessible on the default port 3000. Access http://<server IP address>:3000 in your browser to set up Metabase.