添加源

cd /etc/yum.repos.d/
vim plex.repo

plex.repo内容如下:

[PlexRepo]
name=PlexRepo
baseurl=https://downloads.plex.tv/repo/rpm/$basearch/
enabled=1
gpgkey=https://downloads.plex.tv/plex-keys/PlexSign.key
gpgcheck=1

安装PLEX

安装

sudo yum -y install plexmediaserver

启动

sudo systemctl enable plexmediaserver
sudo systemctl start plexmediaserver

防火墙设置

创建Firewall文档

cd /etc/firewalld/services/
vim plexmediaserver.xml

plexmediaserer.xml内容如下:

<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>plexmediaserver</short>
  <description>Ports required by plexmediaserver.</description>
  <port protocol="tcp" port="32400"></port>
  <port protocol="udp" port="1900"></port>
  <port protocol="tcp" port="3005"></port>
  <port protocol="udp" port="5353"></port>
  <port protocol="tcp" port="8324"></port>
  <port protocol="udp" port="32410"></port>
  <port protocol="udp" port="32412"></port>
  <port protocol="udp" port="32413"></port>
  <port protocol="udp" port="32414"></port>
  <port protocol="tcp" port="32469"></port>
</service>

防火墙服务添加

sudo firewall-cmd --add-service=plexmediaserver --permanent
sudo firewall-cmd --reload

登录PLEX服务器

PLEX的WEB服务占用32400端口

只要在浏览器中输入https://IP:32400/web就能登录了

Related content