In this article, we will have explained the necessary steps to install Plex Media Server on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.
Plex Media Server is an open-source client-server media server created to enable you stream your Videos, Audio and Photos from your Tablet, Mobile device or PC using public internet or local network connection. Plex runs on Windows, macOS, Linux and FreeBSD operating systems.
Install Plex Media Server on CentOS
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo dnf update
Step 2. Install Plex Media Server on CentOS.
The Plex media server packages are not available on the CentOS 8, Now we add the repository manually:
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
After adding the repository, proceed to Install Plex Media Server:
sudo dnf install plexmediaserver
Once the installation is completed, start the Plex media service and enable it to start after system reboot with the following command:
sudo systemctl enable --now plexmediaserver sudo systemctl status plexmediaserver.service
Step 3. Configure Firewalld for Plex
Open required firewall ports:
sudo firewall-cmd --add-service=plex --permanent --zone=public sudo firewall-cmd --reloadsudo firewall-cmd --list-all --zone=public sudo firewall-cmd --reload
Step 4. Accessing Plex Media Server.
The web-based management interface is available at port 32400. Open your browser and access Plex Media set up page by going to the below URL:
Congratulation, you have learned how to install Plex Media Server on CentOS 8. If you have any question, please leave a comment below.