-
Notifications
You must be signed in to change notification settings - Fork 1
Installing Metabase on new server
Neil M edited this page Nov 28, 2022
·
1 revision
A two-server architecture is used in this setup:
- Metabase server: 2GB RAM, 20GB disk, Ubuntu 22.04 x64
- MySQL server: 1GB RAM, 20GB disk, Ubuntu 16.04 x64
To setup the Metabase server:
As a user with sudo privilege:
sudo adduser metabase
sudo apt-get update
sudo apt-get install openjdk-17-jre-headless
sudo mkdir -p /opt/metabase
sudo chown metabase /opt/metabase
Login as metabase, then:
cd /opt/metabase
VER=0.44.6 # whatever the latest version is
mkdir -p $VER/lib $VER/var $VER/bin
wget -P /opt/metabase/current/bin https://github.com/TheRestartProject/DataAnalytics/blob/master/warehouse/scripts/metabase
wget -P /opt/metabase/current/bin https://github.com/TheRestartProject/DataAnalytics/blob/master/warehouse/scripts/start
wget -P /opt/metabase/current/lib http://downloads.metabase.com/v$VER/metabase.jar
ln -s /opt/metabase/$VER /opt/metabase/current
As a user with sudo privilege:
sudo ln -s /opt/metabase/current/bin/metabase /etc/init.d/metabase
sudo systemctl daemon-reload
cd /opt/metabase/current/etc
wget https://github.com/TheRestartProject/DataAnalytics/blob/master/config/metabase
sudo ln -s /opt/metabase/current/etc/metabase /etc/default/metabase
chmod 600 /opt/metabase/current/etc/metabase
Use Nginx and Let's Encrypt.
sudo service metabase start
Logs will be in /var/log/metabase.log
See Metabase documentation for a general description of how to do this.