阅读量:1
在CentOS上搭建Jellyfin服务器可以通过以下步骤完成:
准备工作
- 更新系统:
yum update -y
- 安装依赖包:
yum install -y libicu fontconfig
- 配置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
- 配置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
- 下载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
- 本地安装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
- 启动Jellyfin服务:
sudo systemctl enable jellyfin.service
sudo systemctl start jellyfin.service
- 设置防火墙:
sudo firewall-cmd --zone=public --add-port=8096/tcp --permanent
sudo firewall-cmd --reload
初始化Jellyfin
- 访问Jellyfin Web界面:在浏览器中输入服务器的IP地址:8096。
- 完成初始化设置:按照页面提示完成Jellyfin的初始化配置,包括设置语言、用户名、密码、媒体库等。
配置和优化
- 安装JellySkin主题(可选):将自定义CSS代码添加到“仪表板 - 常规 - 自定义CSS”中,以美化Jellyfin界面。
- 配置ffmpeg:在Jellyfin设置中,进入“控制台 - 播放”,设置FFmpeg路径。
- 启用硬件转码:在“控制台 - 播放”中,选择“Intel QuickSync (QSV)”,勾选可用的视频编码格式。
以上步骤应该可以帮助你在CentOS上成功搭建Jellyfin服务器。如果在安装过程中遇到问题,可以参考Jellyfin的官方文档或相关社区论坛寻求帮助。
以上就是关于“如何在centos上搭建jellyfin服务器”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm