溫馨提示×

如何在centos上搭建jellyfin服務器

小樊
48
2025-02-26 20:20:18
欄目: 云計算

在CentOS上搭建Jellyfin服務器可以通過以下步驟完成:

準備工作

  1. 更新系統
yum update -y
  1. 安裝依賴包
yum install -y libicu fontconfig
  1. 配置yum源(可選,如果需要):
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
  1. 配置rpmfusion源,安裝ffmpeg
yum install -y epel-release
wget https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
rpm -ivh rpmfusion-free-release-7.noarch.rpm
yum install -y ffmpeg

安裝Jellyfin

  1. 下載Jellyfin服務端相關rpm包
wget -c https://repo.jellyfin.org/releases/server/centos/stable/web/jellyfin-web-10.8.9-1.el7.noarch.rpm
wget -c https://repo.jellyfin.org/releases/server/centos/stable/server/jellyfin-server-10.8.9-1.el7.x86_64.rpm
wget -c https://repo.jellyfin.org/releases/server/centos/stable/server/jellyfin-10.8.9-1.el7.x86_64.rpm
  1. 本地安裝Jellyfin
sudo yum localinstall jellyfin-web-10.8.9-1.el7.noarch.rpm
sudo yum localinstall jellyfin-server-10.8.9-1.el7.x86_64.rpm
sudo yum localinstall jellyfin-10.8.9-1.el7.x86_64.rpm
  1. 啟動Jellyfin服務
sudo systemctl enable jellyfin.service
sudo systemctl start jellyfin.service
  1. 設置防火墻
sudo firewall-cmd --zone=public --add-port=8096/tcp --permanent
sudo firewall-cmd --reload

初始化Jellyfin

  1. 訪問Jellyfin Web界面:在瀏覽器中輸入服務器的IP地址:8096。
  2. 完成初始化設置:按照頁面提示完成Jellyfin的初始化配置,包括設置語言、用戶名、密碼、媒體庫等。

配置和優化

  1. 安裝JellySkin主題(可選):將自定義CSS代碼添加到“儀表板 - 常規 - 自定義CSS”中,以美化Jellyfin界面。
  2. 配置ffmpeg:在Jellyfin設置中,進入“控制臺 - 播放”,設置FFmpeg路徑。
  3. 啟用硬件轉碼:在“控制臺 - 播放”中,選擇“Intel QuickSync (QSV)”,勾選可用的視頻編碼格式。

以上步驟應該可以幫助你在CentOS上成功搭建Jellyfin服務器。如果在安裝過程中遇到問題,可以參考Jellyfin的官方文檔或相關社區論壇尋求幫助。

0
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女