在CentOS上安装Jellyfin有多种方法,以下是两种推荐的安装方式:
sudo yum install libicu fontconfig -y
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xztar -xvf ffmpeg-git-amd64-static.tar.xz
cp ffmpeg-git-20200211-amd64-static/ffmpeg /usr/bin/
cp ffmpeg-git-20200211-amd64-static/ffprobe /usr/bin/
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
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
sudo systemctl start jellyfin
docker pull linuxserver/jellyfin
docker-compose.yml
文件来配置Jellyfin容器,例如:version: "2.1"
services:
jellyfin:
image: ghcr.io/linuxserver/jellyfin
container_name: jellyfin
environment:
- PUID=998
- PGID=100
- TZ=Asia/Shanghai
volumes:
- /srv/dev-disk-by-uuid-760db5aa-db10-48eb-bc2e-06fcf98b2c8f/software/jellyfin/config:/config
- /srv/dev-disk-by-uuid-760db5aa-db10-48eb-bc2e-06fcf98b2c8f/pt/qbittorrent/downloads/Movies:/data/Movies
- /srv/dev-disk-by-uuid-760db5aa-db10-48eb-bc2e-06fcf98b2c8f/pt/qbittorrent/downloads/Musics:/data/Musics
- /srv/dev-disk-by-uuid-760db5aa-db10-48eb-bc2e-06fcf98b2c8f/pt/qbittorrent/downloads/Pictures:/data/Pictures
ports:
- 9003:8096
- 8920:8920
- 7359:7359/udp
- 1900:1900/udp
devices:
- /dev/dri:/dev/dri
restart: unless-stopped
docker-compose up -d
希望这些步骤能帮助你在CentOS上成功安装和配置Jellyfin。如果有任何问题,请参考Jellyfin的官方文档或社区支持。