Professional Documents
Culture Documents
Install Metabase With Systemd On Debian 11 - 10 - 9 - ComputingForGeeks
Install Metabase With Systemd On Debian 11 - 10 - 9 - ComputingForGeeks
Metabase is a simple and powerful analytics tool which lets anyone learn and make decisions
from their company’s data. No technical knowledge required to start using the tool. In this
guide, I’ll be showing you how to Install Metabase with Systemd on Debian 10 / Debian 9 Linux
system.
To run the Metabase jar file you need to have Java installed on your system. Currently,
Metabase requires Java 8 or higher and will work on either the OpenJDK or Oracle JDK.
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 1/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
$ java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-post-Debian-2)
OpenJDK 64-Bit Server VM (build 11.0.12+7-post-Debian-2, mixed mode,
sharing) x
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 2/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
I’ll create a database for use with Metabase on MySQL database server like below.
If the database server is remote, assign privilege to a user at specific IP address, e.g:
'metabase'@'192.168.0.20'
Or allow access from any IP – Not recommended for a server with public access:
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 3/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
'metabase'@'%'
export VER=0.41.1
wget http://downloads.metabase.com/v${VER}/metabase.jar
sudo mkdir -p /apps/java
sudo cp metabase.jar /apps/java
The most basic way of running Metabase to use the java command to launch the
application.
This will start the Metabase application using all of the default settings.
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 4/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
For the sake of simplicity, I’ll do a specific systemd service file for metabase
[Unit]
Description=Metabase applicaion service
Documentation=https://www.metabase.com/docs/latest
[Service]
WorkingDirectory=/apps/java
ExecStart=/usr/bin/java -Xms128m -Xmx256m -jar metabase.jar
User=appmgr
Type=simple
Restart=on-failure
x
RestartSec=10
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 5/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
[Install]
WantedBy=multi-user.target
Set your values for maximum and minimum memory allowed for the Java application ( -
Xms128m and -Xmx256m ) in my case
The next thing to do is start the application service, but first, reload systemd so that it loads
the new application added.
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 6/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
Click “Let’s get started” button to start the setup. On the next page, create a user to manage
Metabase
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 7/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
Provide info about your MySQL database – username and password. If you don’t have that
right now, Metabase also comes with a sample dataset you can get started with.
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 8/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
You need to feed your data to the database configured above. Metabase will check for data
there. Once you finish the setup, you’ll get access to Metabase Administration panel
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 9/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
See the Metabase getting Started page to start adding Dataset and playing with your data.
Also, visit Official metabase documentation for detailed setup and administration.
Also check:
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 10/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
Thank You for your support as we work to give you the best of
guides and articles. Click below to buy us a coffee.
Josphat Mutai
https://computingforgeeks.com/
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 11/12
6/7/23, 18:08 Install Metabase with Systemd on Debian 11/10/9 | ComputingForGeeks
https://computingforgeeks.com/install-metabase-with-systemd-on-debian-linux/?expand_article=1 12/12