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.