Plex is a client-server media player system and software suite comprising two main components. The Plex Media Server desktop application runs on Windows, macOS, and Linux-compatibles including some types of NAS devices. The server desktop application organizes video, audio, and photos from a user’s collections and from online services, enabling the players to access and stream the contents. There are also official clients available for mobile devices, smart TVs, and streaming boxes, a web app, and Plex Home.
In this article, you will learn how to install Plex on CentOS/RHEL 8 (64-bit) server.
Prerequisites
- RHEL or CentOS 8 Server.
- Root Access.
- A static IP address.
Step 1: Add Plex Repository
vi /etc/yum.repos.d/plex.repo
Add below lines in this file.
[Plex] name=Plex baseurl=https://downloads.plex.tv/repo/rpm/$basearch/ enabled=1 gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key gpgcheck=1
Step 2: Installation on Plex media server
Use below command to install plex:
dnf install plexmediaserver -y
Now enable plex service on boot and start it.
systemctl enable plexmediaserver systemctl start plexmediaserver
Step 3: Configure Firewalld for Plex
create new firewalld service configuration “plex.xml” for plex using below command.
vi /etc/firewalld/services/plex.xml
Now add below configuration in this file.
<?xml version="1.0" encoding="utf-8"?> <service> <short>plex</short> <description>Ports required by Plex.</description> <port protocol="tcp" port="32400"></port> <port protocol="tcp" port="32469"></port> <port protocol="tcp" port="8324"></port> <port protocol="tcp" port="3005"></port> <port protocol="udp" port="32414"></port> <port protocol="udp" port="32413"></port> <port protocol="udp" port="32412"></port> <port protocol="udp" port="32410"></port> <port protocol="udp" port="1900"></port> <port protocol="udp" port="5353"></port> </service>
Save changes and exit.
So, add “plex” service in firewalld list and restart the firewall.
firewall-cmd --add-service=plex --permanent firewall-cmd --reload
Step 4: Access Plex Media Server
Then, you can access your Plex using below link and you will see welcome screen provided in the image below.
http://SERVER-IP:32400/web/
Now complete the registration and you will be redirected to your dashboard.
And that is it. So, enjoy it.
Als you can read our post about cezerin. Or, all our posts about CentOS.
So, do not forget to share this post with your friends and please join our Telegram Channel.
Hi, I followed the steps one by one without receiving errors, however, when I get to step 4, the plex web interface does not load
which URL your are trying to browsing?
THE STATIC IP OF CENTOS 8
For the next person to come along, you need [serverip]:32400/web/
browse URL along with port like below:
http://SERVER-IP:32400/web/
Nice articale man! the only one on the internet that worked for me, thanks again.