运维

运维

Products

当前位置:首页 > 运维 >

如何设置CentOS上Jellyfin的访问权限?

96SEO 2025-07-25 22:13 5


1. 安装Jellyfin

先说说确保你已经在CentOS上安装了Jellyfin。你能用以下命令来安装:

jellyfin在centos上的访问权限怎么设置
sudo dnf install jellyfin

2. 配置防火墙

为了确保Jellyfin能通过网络访问,你需要配置防火墙以允许HTTP/HTTPS流量。

如果你用的是firewalld 能运行以下命令来允许HTTP和HTTPS流量:

sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --reload

3. 配置SELinux

如果你的系统启用了SELinux,兴许需要调整SELinux策略以允许Jellyfin访问网络。

你能用以下命令来编辑SELinux配置文件:

sudo vi /etc/selinux/config

确保以下配置项正确设置:

SELINUX=disabled

4. 编辑Jellyfin配置文件

编辑Jellyfin的配置文件以确保它正确运行。配置文件通常位于/etc/jellyfin/config//var/lib/jellyfin/config/

serverUrl = http://:8096
externalUrls = http://:8096

5. 启动Jellyfin服务并设置为开机自启

sudo systemctl start jellyfin
sudo systemctl enable jellyfin

6. 配置用户访问权限

如果你需要设置特定的用户访问权限,能在Jellyfin的Web界面中进行管理:

最新鲜版本能在 这玩意儿地址查看。

7. 访问Jellyfin

打开浏览器, 访问http://:8096你得能够看到Jellyfin的登录页面。

通过以上步骤,你得能够在CentOS上成功设置Jellyfin的访问权限。确保防火墙和SELinux配置正确,以便Jellyfin能够正常运行。


标签: CentOS

提交需求或反馈

Demand feedback