运维

运维

Products

当前位置:首页 > 运维 >

如何轻松安装并配置Ubuntu上的Jellyfin?

96SEO 2025-05-26 12:09 1


一、

你是不是在寻找一个轻巧松容易用的新闻服务器来管理和流式传输你的许多新闻内容?Jellyfin,前身为Emby,是一款开源的新闻服务器柔软件,它能在Ubuntu上轻巧松安装和配置。让我们一起探索怎么轻巧松地让Jellyfin在你的Ubuntu系统上运行。

Ubuntu Jellyfin如何安装与配置

二、 准备阶段

1. 确认系统兼容性

在开头之前,请确保你的Ubuntu版本支持Jellyfin。巨大许多数新潮Ubuntu发行版, 如Ubuntu 20.04和Ubuntu 22.04,都支持Jellyfin。

2. 更新鲜系统

在安装随便哪个柔软件之前,确保你的系统是最新鲜的。用以下命令更新鲜你的系统:

sudo apt update
sudo apt upgrade -y

三、 安装Jellyfin

1. 添加Jellyfin仓库

先说说你需要将Jellyfin的仓库添加到你的系统:

echo deb https://repo.jellyfin.org/ubuntu bionic main | sudo tee /etc/apt/sources.list.d/jellyfin.list

2. 安装GPG密钥

然后安装GPG密钥以确保仓库的完整性:

sudo apt install curl -y
curl -fsSL https://repo.jellyfin.org/debian/gpg.key | sudo apt-key add -

眼下你能安装Jellyfin了:

sudo apt update
sudo apt install jellyfin -y

四、配置Jellyfin

1. 启动Jellyfin服务

安装完成后启动Jellyfin服务:

sudo systemctl start jellyfin

2. 设置防火墙规则

确保防火墙允许Jellyfin的流量。对于ufw, 用以下命令:

sudo ufw allow 80
sudo ufw allow 443

3. 配置Apache作为反向代理

如果需要用HTTPS,你兴许需要配置Apache作为反向代理。


    ServerName your_domain
    Redirect permanent / https://your_domain/
    ErrorLog ${APACHE_LOG_DIR}/your_domain-
    CustomLog ${APACHE_LOG_DIR}/your_domain- combined


    ServerName your_domain
    DocumentRoot /var/www/html/jellyfin/public_html
    ProxyPreserveHost On
    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/"
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/your_domain/
    SSLCertificateKeyFile /etc/letsencrypt/live/your_domain/

4. 沉启Apache

再说说 不要记不得沉启Apache服务以应用更改:

sudo systemctl restart apache2

通过以上步骤,你已经在Ubuntu上成功安装并配置了Jellyfin。眼下你能开头添加新闻库、设置流新闻播放器,并享受你的许多新闻内容了。希望这篇文章能帮你轻巧松上手Jellyfin。


标签: ubuntu

提交需求或反馈

Demand feedback