Posts

Showing posts from September, 2022

Installing metabase on ec2 linux server as a service file.

 Metabase installation   log in with root user # sudo su  Install the java on linux server # sudo amazon-linux-extras install java-openjdk11  Creating a directory  # mkdir ~/metabase Download a metabase.jar file and move to directory to download metabase.jar # wget https://metabase.com/start/oss/jar    # mv /home/ec2-user/metabase.jar ~/metabase Change directory to metabase # cd ~/metabase Now Run the cammand to run the jar file # java -jar metabase.jar To make the jar file into service, these are the following steps   # sudo groupadd -r metabase # sudo useradd -r -s /bin/false -g metabase metabase # pwd # sudo chown -R metabase:metabase /home/ec2-user/metabase/metabase/directoy # sudo touch /var/log/metabase.log  # sudo chown syslog:adm /var/log/metabase.log  # sudo touch /etc/default/metabase  # sudo chmod 640 /etc/default/metabase Once the folder and file is made just copy and past the folloing steps in the file  # vi /etc/systemd/system/metabase.service [Unit] Description=Metabase