# Jellyfin 刮削加速

## 注意

**若您的 Jellyfin 更新，您需要重新替换文件！**

## Docker

请确定您使用的是官方 `jellyfin/jellyfin:latest` docker.

通过 ssh 软件（例如 Xshell、Putty、Termius 等）连接到你的服务器

使用 `sudo -i` 进入 root 用户

执行下列命令下载加速程序集

```bash
wget http://file.867678.xyz/patch/jellyfin/normal/net5.0-Linux-Release/System.Net.Http.dll
```

使用 `docker ps` 获得 docker 的 `NAME`

执行下列命令将程序集复制进 docker 中

```
docker cp System.Net.Http.dll <NAME>:/jellyfin/
```

重启 docker

```
docker restart <NAME>
```

## Windows

下载 [加速程序集](http://file.867678.xyz/patch/jellyfin/normal/net5.0-Windows_NT-Release/System.Net.Http.dll) 替换到 `Jellyfin\Server` 即可

## Debian & Ubuntu

下载并替换程序集

```
wget http://file.867678.xyz/patch/jellyfin/normal/net5.0-Linux-Release/System.Net.Http.dll -O /usr/lib/jellyfin/bin/System.Net.Http.dll
```

重启 Jellyfin

```
systemctl restart jellyfin.service
```

## **Generic Linux**

下载 [加速程序集](http://file.867678.xyz/patch/jellyfin/normal/net5.0-Linux-Release/System.Net.Http.dll) 替换到 `jellyfin-server_x.x.x_linux-amd64.tar.gz`解压的目录\
**其他没有写到的** Linux **就拿这里的程序集替换就可以**

## MacOS

[加速程序集](http://file.867678.xyz/patch/jellyfin/normal/net5.0-OSX-Release/System.Net.Http.dll)\
没有设备，自己找安装目录替换的地方

## FreeNAS （FreeBSD）

[加速程序集](http://file.867678.xyz/patch/jellyfin/normal/net5.0-FreeBSD-Release/System.Net.Http.dll)\
没有设备，自己找安装目录替换的地方


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nanashi.gitbook.io/jellyfin-usage-cn/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
