0% found this document useful (0 votes)
168 views2 pages

Metabase Installation Steps

The document outlines the steps to install Metabase including: 1. Installing Java and creating a Metabase user 2. Downloading the Metabase JAR file 3. Configuring a systemd service to run Metabase, specifying environment variables for database connection details

Uploaded by

valecharc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
168 views2 pages

Metabase Installation Steps

The document outlines the steps to install Metabase including: 1. Installing Java and creating a Metabase user 2. Downloading the Metabase JAR file 3. Configuring a systemd service to run Metabase, specifying environment variables for database connection details

Uploaded by

valecharc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Metabase Installation steps:

Java installation
1. sudo apt update
2. sudo apt install default-jre
Note- We Need atleast java 8(1.8), anything above that is fine

Adding a metabase user(optional)


1. sudo adduser metabase
2. sudo touch /var/log/metabase.log
3. sudo chown syslog:adm /var/log/metabase.log
4. sudo touch /etc/default/metabase

Downloading metabase jar file


1. Create a directory named metabase where ever you wish to install it (currently on
staging its under public/metabase)
2. cd metabse
3. wget https://downloads.metabase.com/v0.43.0/metabase.jar
4. Set permission to metabase user chown metabase:metabase metabase.jar

Setup a service
1. Create a blank service file touch /etc/systemd/system/metabase.service
2. Edit this file and make changes as per prod environment
vi metabase.service

[Unit]
Description=Metabase server

[Service]
Type=simple
WorkingDirectory=/home/metabase
User=metabase
Group=metabase
ExecStart=/bin/java -jar /home/metabase/metabase.jar
Restart=on-failure
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=metabase
Environment=MB_PASSWORD_COMPLEXITY=normal
Environment=MB_PASSWORD_LENGTH=8
Environment=MB_DB_TYPE=mysql
Environment=MB_DB_DBNAME=backbone
Environment=MB_DB_PORT=3306
Environment=MB_DB_USER=<user>
Environment=MB_DB_PASS=<password>
Environment=MB_DB_HOST=<host>
Environmen=MB_EMOJI_IN_LOGS=true
Setup a service
1. systemctl enable metabase
2. systemctl start metabase

Verify
1. ps aux | grep metabase

You might also like