在CentOS上安裝Jellyfin媒體服務器的步驟如下:
yum update -y
yum install epel-release -y
yum install ffmpeg -y
yum install libicu fontconfig -y
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
wget https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
rpm -ivh rpmfusion-free-release-7.noarch.rpm
yum install -y rpmfusion-free-release-7.noarch.rpm
訪問Jellyfin官方倉庫,根據你的CentOS版本選擇合適的RPM包進行下載。例如,對于CentOS 7,你可以下載以下包:
使用yum
本地安裝下載的RPM包:
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
sudo systemctl enable jellyfin.service
sudo systemctl start jellyfin.service
sudo systemctl enable jellyfin.service
在瀏覽器中輸入服務器的IP地址,加上端口號8096(例如:http://192.168.1.100:8096
),然后按照頁面提示完成Jellyfin的初始化設置。
在Jellyfin的管理界面中,進入“控制臺” -> “播放” -> “轉碼”,根據你的需求配置轉碼設置。
你可以通過自定義CSS來美化Jellyfin的頁面。具體操作是在“儀表板” -> “常規” -> “自定義CSS”中添加相應的CSS代碼。
以上就是在CentOS上安裝Jellyfin的基本步驟,希望對你有所幫助。如果在安裝過程中遇到問題,可以參考Jellyfin的官方文檔或相關社區論壇尋求幫助。