Skip to content

Instantly share code, notes, and snippets.

@teja156
Created July 4, 2023 05:10
Show Gist options
  • Save teja156/77f460d8899daecfe636254fc145df30 to your computer and use it in GitHub Desktop.
Save teja156/77f460d8899daecfe636254fc145df30 to your computer and use it in GitHub Desktop.
Streama Server Setup

Streama Server Setup

OS: CentOS 7

YouTube Tutorial: https://youtu.be/12y8oD2NkuM

➝ Install JDK 8

sudo yum install java-1.8.0-openjdk-devel

➝ Install and setup firewall

# Install
sudo yum install firewalld

# Enable
sudo systemctl enable firewalld

# Reboot system
sudo reboot

# Check state
sudo firewall-cmd --state

# Get default zone
firewall-cmd --get-default-zonefiew

# Add port 80
sudo firewall-cmd --zone=public --add-port=80/tcp

➝ Download streama

mkdir streama
cd streama

wget https://github.com/streamaserver/streama/releases/download/v1.10.4/streama-1.10.4.jar

➝ Edit application.yml Create a new file called "application.yml" in the same directory as the jar file and paste the following contents.

environments:
    production:
        server:
            port: 80

➝ Create new screen

sudo yum install screen
screen

➝ Run streama

cd ~/streama
chmod +x streama*.jar
java -jar streama*.jar

➝ Detach from screen Hold Ctrl + A and then press D to detach.

➝ Connect domain name to VPS by adding an A type record with the public IP of the VPS machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment