How To Install Plex Media Server on Rocky Linux 9

Install Plex Media Server on Rocky Linux 9

In this tutorial, we will show you how to install Plex Media Server on Rocky Linux 9. For those of you who didn’t know, Plex is a free, open-source, and full-featured media server that allows you to stream your photos, video, and audio files on your PC, tablet or phone from anywhere. The software organizes your files and content into categories, making it easy to find and use. In addition, the Plex Media Server provides security and privacy features that allow you to control who can access your content and when.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Plex Media Server on Rocky Linux. 9.

Prerequisites

  • A server running one of the following operating systems: Rocky Linux 9.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo useror access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Plex Media Server on Rocky Linux 9

Step 1. The first step is to update your system to the latest version of the package list. To do so, run the following commands:

sudo dnf check-update
sudo dnf install dnf-utils

Step 2. Installing Plex Media Server on Rocky Linux 9.

By default, the Plex is not available on Rocky Linux 9 base repository. Now run the following command below to add the Plex repository to your Rocky Linux system:

sudo tee /etc/yum.repos.d/plexmedia.repo<<EOF
[Plex]
name=Plex
baseurl=https://downloads.plex.tv/repo/rpm/$basearch/
enabled=1
gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key
gpgcheck=1
EOF

After the repository is enabled, now install the latest version of Plex Media Server using the below command:

sudo dnf install plexmediaserver

Once the installation is completed, start the Plex media service and enable it to start after the system reboot with the following command:

sudo systemctl enable plexmediaserver
sudo systemctl start plexmediaserver
sudo systemctl status plexmediaserver

Step 3. Configure Firewall.

Now we configure the firewall to allow Plex media server specific ports. You can do it by running the following commands:

sudo firewall-cmd --add-service=plex --zone=public --permanent
sudo firewall-cmd --reload

Step 4. Accessing Plex Media Server on Rocky Linux 9

Once successfully installed, open your web browser and access the Plex web interface using the URLhttp://your-IP-address:32400/web. You will be redirected to the following page:

Install Plex Media Server on Rocky Linux 9

Congratulations! You have successfully installed Plex. Thanks for using this tutorial for installing Plex Media Server on your Rocky Linux 9 system. For additional help or useful information, we recommend you check the official Plex website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!