在CentOS上集成Jellyfin媒体服务器可以通过多种方式实现,以下是详细的步骤:
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
http://your_server_ip:8096
完成初始化设置。curl -sSL https://get.docker.com/ | sh
systemctl start docker
systemctl enable docker
docker pull jellyfin/jellyfin:latest
docker run -d --restart always -v /srv/jellyfin/config:/config -v /srv/jellyfin/cache:/cache -v /media:/media --net host jellyfin/jellyfin:latest
firewall-cmd --zone public --add-port 8096/tcp --permanent
firewall-cmd --reload
http://your_server_ip:8096
。yum install gcc-c++ git 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
echo "YOUR_S3_ACCESS_KEY:YOUR_S3_SECRET_KEY" > /etc/passwd-s3fs
chmod 600 /etc/passwd-s3fs
s3fs YOUR_BUCKET /mnt/oss -o passwd_file=/etc/passwd-s3fs -o url=https://YOUR_S3_ENDPOINT -o use_path_request_style
mkdir -p /mnt/oss
完成以上步骤后,S3中的媒体文件即可通过Jellyfin访问。
以上步骤涵盖了在CentOS上通过RPM包和Docker安装Jellyfin的基本流程,以及如何配置S3存储。根据具体需求,您可能还需要进行进一步的配置和优化。