Jellyfin在CentOS上的兼容性相对较好,有多种安装方法可供选择,包括使用RPM包、Docker容器以及源码编译。以下是一些详细的安装步骤和注意事项:
yum install libicu fontconfig -y
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
rpm -Uvh --nodeps jellyfin-web-10.8.9-1.el7.noarch.rpm
rpm -Uvh --nodeps jellyfin-server-10.8.9-1.el7.x86_64.rpm
rpm -Uvh --nodeps jellyfin-10.8.9-1.el7.x86_64.rpm
systemctl start jellyfin
systemctl enable jellyfin
curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
docker pull jellyfin/jellyfin:latest
docker run -d --name myvideo -p 80:8096 --restart=always --privileged=true -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /movies:/media jellyfin/jellyfin:latest
yum install gcc fuse-devel libcurl-devel libxml2-devel make openssl-devel -y
git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
make && make install
mkdir -p /mnt/oss
s3fs YOUR_BUCKET /mnt/oss -o passwd_file=/etc/passwd-s3fs -o url=https://YOUR_S3_ENDPOINT -o use_path_request_style
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
tar -xvf ffmpeg-git-amd64-static.tar.xz
cp ffmpeg-git-20200211-amd64-static/ffmpeg /usr/bin/
通过以上方法,你可以在CentOS上成功安装和运行Jellyfin,享受家庭媒体服务带来的便利。