117.info
人生若只如初见

jellyfin支持哪些ubuntu系统

Jellyfin是一个开源的媒体服务器软件,它支持多种Linux发行版,包括Ubuntu。具体来说,Jellyfin可以在Ubuntu 20.04及更高版本上运行。以下是在Ubuntu上安装Jellyfin的详细步骤:

安装步骤

  1. 更新系统并安装必要的包
sudo apt update
sudo apt install apt-transport-https ca-certificates gnupg curl
  1. 创建Jellyfin GPG密钥
mkdir -p /etc/apt/keyrings
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
  1. 添加Jellyfin仓库

对于Ubuntu 20.04及更高版本:

echo "deb [arch=$(dpkg --print-architecture)] https://repo.jellyfin.org/ubuntu $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list

对于Ubuntu 18.04:

echo "deb [arch=amd64] https://repo.jellyfin.org/ubuntu bionic main" | sudo tee /etc/apt/sources.list.d/jellyfin.list
  1. 更新包列表
sudo apt update
  1. 安装Jellyfin
sudo apt install jellyfin -y
  1. 验证Jellyfin服务
sudo systemctl is-enabled jellyfin
sudo systemctl status jellyfin
  1. 管理Jellyfin服务

启动、停止、重启Jellyfin服务:

sudo systemctl start jellyfin
sudo systemctl stop jellyfin
sudo systemctl restart jellyfin
  1. 配置防火墙(可选):
sudo apt install ufw -y
sudo ufw allow OpenSSH
sudo ufw enable
sudo ufw allow "WWW Full"
sudo ufw status
  1. 安装Apache和Certbot(可选,用于SSL配置):
sudo apt install apache2 certbot python3-certbot-apache -y
sudo systemctl is-enabled apache2
sudo systemctl status apache2
sudo a2enmod proxy proxy_http ssl proxy_wstunnel remoteip http2 headers
sudo systemctl restart apache2
  1. 设置Apache作为反向代理

创建Jellyfin的web根目录并设置权限:

sudo mkdir -p /var/www/html/jellyfin/public_html
sudo chown -R www-data:www-data /var/www/html/jellyfin/public_html

使用Certbot为你的域名获取SSL证书:

sudo certbot certonly --agree-tos --email your_email@gmail.com --no-eff-email --webroot -w /var/www/html -d your_domain

创建一个新的Apache虚拟主机配置文件:

sudo nano /etc/apache2/sites-available/jellyfin.conf

插入以下配置,根据需要更改域名、SSL证书路径和服务器IP地址:


    ServerName your_domain
    # Comment to prevent HTTP to HTTPS redirect
    Redirect permanent / https://your_domain/
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined



    ServerName your_domain
    DocumentRoot /var/www/html/jellyfin/public_html
    ProxyPreserveHost On
    ProxyPass "/.well-known/" "!"
    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"
    ProxyPass "/socket" "ws://0.0.0.0:8096/socket"
    ProxyPassReverse "/socket" "ws://0.0.0.0:8096/socket"
    ProxyPass "/" "http://0.0.0.0:8096/"
    ProxyPassReverse "/" "http://0.0.0.0:8096/"
    IfModule mod_ssl.c
        SSLEngine on
        SSLCertificateFile /path/to/your/certificate.crt
        SSLCertificateKeyFile /path/to/your/private.key
        SSLCertificateChainFile /path/to/your/chainfile.crt
    
  1. 启用Apache虚拟主机
sudo a2ensite jellyfin.conf
sudo systemctl reload apache2

完成以上步骤后,你就可以在Ubuntu系统上成功安装并运行Jellyfin媒体服务器了。

未经允许不得转载 » 本文链接:https://www.117.info/ask/fef72AzsKCA9XDFE.html

推荐文章

  • Ubuntu FTP支持哪些协议

    Ubuntu支持多种FTP相关协议,主要包括以下几种:
    FTP(文件传输协议) 简介:FTP是一种用于在网络上进行文件传输的标准协议,使用客户端-服务器模型,通过控...

  • ubuntu中nodejs模块如何安装

    在 Ubuntu 系统中,您可以使用以下步骤来安装 Node.js 模块: 打开终端(快捷键:Ctrl + Alt + T) 首先确保已经安装了 Node.js 和 npm。如果尚未安装,请运行以...

  • 如何测试Ubuntu From Scratch

    Linux From Scratch (LFS) 是一个项目,它教导用户如何从零开始创建自己的 Linux 操作系统。这个过程涉及到下载 Linux 内核源代码、编译、安装各种系统组件,最终...

  • 如何监控ubuntu sqladmin运行状态

    要监控Ubuntu上SQLAdmin的运行状态,您可以采取以下几种方法:
    1. 使用系统服务管理工具
    如果SQLAdmin是作为系统服务运行的(例如使用systemd),您可...

  • Debian下Golang如何进行错误处理

    在Go语言中,错误处理是通过返回值来实现的。当一个函数遇到错误时,它会返回一个错误类型的值。通常,错误类型的值是error接口类型,它有一个方法Error() strin...

  • 如何修改CentOS Apache端口

    要修改CentOS Apache服务器的端口,请按照以下步骤操作: 打开Apache配置文件:
    在终端中输入以下命令,以使用文本编辑器(如vi或nano)打开Apache的主配置...

  • Linux上Swagger工具使用有哪些技巧

    在Linux上使用Swagger工具时,可以采用以下一些技巧来提高效率和安全性: 使用最新稳定版本: 确保使用的是Swagger的最新稳定版本,以获得最佳性能和安全性。例如...

  • Debian系统中如何优化Laravel的内存使用

    在Debian系统中优化Laravel的内存使用,可以通过以下几个方面来实现:
    1. 调整PHP内存限制
    编辑/etc/php/7.x/cli/php.ini(根据你的PHP版本调整路径和...