fix style

This commit is contained in:
rustdesk
2025-06-15 03:53:23 +08:00
parent 3b90f48e24
commit 3d60e0f5e2
299 changed files with 2108 additions and 2134 deletions

View File

@@ -11,7 +11,7 @@ Die Sicherheitsrichtlinien von Windows sind knifflig. Wenn diese Anleitung bei I
Die GUI-Version `RustDeskServer.setup.exe` wird nicht mehr gepflegt und nicht empfohlen.
{{% /notice %}}
### Optionen
## Optionen
Sie haben nun zwei Möglichkeiten, Sie können entweder PM2 (einfacher) oder NSSM (etwas schwieriger) verwenden, um den RustDesk-Server zu starten.
Die Verwendung von NSSM hat einige Vorteile:
- Abwärtskompatibilität mit älteren Windows-Versionen (Windows Server 2008 R2/Windows 7 und früher, obwohl nicht getestet).
@@ -25,9 +25,9 @@ Die Vorteile von PM2 sind unter anderem:
- Sie melden sich regelmäßig mit dem Benutzer an, der den RustDesk-Starteintrag erstellt hat.
- Mehr Benutzerfreundlichkeit
### Installation mit NSSM
## Installation mit NSSM
#### NSSM installieren
### NSSM installieren
Bitte laden Sie [NSSM](https://github.com/dkxce/NSSM/releases/download/v2.25/NSSM_v2.25.zip) herunter, extrahieren Sie es und wählen Sie die entsprechende
Architektur für Ihr Windows-System (für x86 verwenden Sie den Inhalt des win32-Ordners, für x64 den
Inhalt des win64-Ordners). Es ist auch sinnvoll, die Binärdatei von NSSM nach `Program Files\NSSM` zu verschieben.
@@ -35,7 +35,7 @@ Wenn NSSM einmal als Dienst gestartet wurde, kann es nicht mehr aus dem Ordner v
Daher ist es am besten, sie im Ordner `Program Files` Ihres Installationslaufwerks (in der Regel das Laufwerk C:) zu verstauen.
Es ist auch ratsam, den Pfad (z. B. `C:\Program Files\NSSM`) in die Pfadvariable aufzunehmen.
#### Prüfen, ob NSSM korrekt installiert ist
### Prüfen, ob NSSM korrekt installiert ist
Wenn Sie alles richtig gemacht haben, sollte der Ordner `C:\Program Files\NSSM`
(in diesem Beispiel Laufwerk C:, der Pfad ist aber frei wählbar)
nur die Datei `nssm.exe` enthalten.
@@ -44,7 +44,7 @@ In diesem Beispiel wird `C:\Program Files\NSSM` verwendet.
Öffnen Sie die Eingabeaufforderung und führen Sie `nssm` aus. Wenn Sie eine Hilfeseite sehen, können Sie mit dem nächsten Schritt fortfahren.
#### hbbr und hbbs ausführen
### hbbr und hbbs ausführen
Laden Sie die Windows-Version von [RustDesk Server](https://github.com/rustdesk/rustdesk-server/releases) herunter.
Entpacken Sie das Programm nach `C:\Program Files\RustDesk Server` oder wo immer Sie wollen. Stellen Sie nur sicher,
dass sich der Ort nach der Installation des Dienstes nicht ändert. Gehen Sie nun zurück zur Eingabeaufforderung.
@@ -81,16 +81,16 @@ nssm start <Gewünschter hbbr-Dienstname>
(Die obige Methode wurde auf einem Windows Server Core 2022 Standard getestet).
### oder
## oder
### Installation mit PM2
## Installation mit PM2
#### Node.js installieren
### Node.js installieren
Bitte Node.js [herunterladen](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) und installieren.
Node.js ist die Laufzeitumgebung von PM2, Sie müssen also zuerst Node.js installieren.
#### PM2 installieren
### PM2 installieren
Öffnen Sie die Eingabeaufforderung und führen Sie Zeile für Zeile mit <kbd>Enter</kbd> aus.
@@ -100,7 +100,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
#### hbbr und hbbs ausführen
### hbbr und hbbs ausführen
Laden Sie die Windows-Version von [RustDesk Server](https://github.com/rustdesk/rustdesk-server/releases) herunter. Entpacken Sie das Programm auf Laufwerk C:. Führen Sie die folgenden vier Befehle aus:
@@ -111,12 +111,12 @@ pm2 start hbbr.exe
pm2 save
```
#### Protokoll anzeigen
### Protokoll anzeigen
```cmd
pm2 log hbbr
pm2 log hbbs
```
### Alternative Anleitungen
## Alternative Anleitungen
https://pedja.supurovic.net/setting-up-self-hosted-rustdesk-server-on-windows/?lang=lat

View File

@@ -11,7 +11,7 @@ Windows security policy is tricky, if this tutorial does not work for you, or yo
The GUI version, `RustDeskServer.setup.exe` has not been maintained any more, not recommended.
{{% /notice %}}
### A crossroads
## A crossroads
You now either have two choices, you can either use PM2 (easier) or NSSM (a bit harder) to start the RustDesk server
There are some benefits to using NSSM:
- Backwards compatibility with older Windows (Windows Server 2008 R2/Windows 7 and earlier although untested).
@@ -25,9 +25,9 @@ While the benefits of PM2 include:
- You logon regularly to the user that created the RustDesk startup entry
- More user friendly
### Installing using NSSM
## Installing using NSSM
#### Installing NSSM
### Installing NSSM
Please [download](https://github.com/dkxce/NSSM/releases/download/v2.25/NSSM_v2.25.zip) and extract NSSM select the appropriate
architecture to your Windows system (if x86 use the contents of the win32 folder, if x64 use the
contents of win64 folder). It is also best practice to move the binary of NSSM into the
@@ -35,7 +35,7 @@ contents of win64 folder). It is also best practice to move the binary of NSSM i
thus it is best to tuck it away in `Program Files`) directory of your Installation drive (Usually the C: drive).
It is also advisable to add the path (such as `C:\Program Files\NSSM`) to the path variable.
#### Checking if NSSM is installed properly
### Checking if NSSM is installed properly
If you've done everything correctly the folder `C:\Program Files\NSSM` (in this example I use the C:
drive but you can use whatever drive you installed Windows to or whatever path you desire) should
only contain the file `nssm.exe`.
@@ -44,7 +44,7 @@ We will be using `C:\Program Files\NSSM` in this example.
Open Command prompt and run `nssm` if you see a help page you are ready to move onto the next step.
#### Run hbbr and hbbs
### Run hbbr and hbbs
Download the Windows version of [RustDesk Server](https://github.com/rustdesk/rustdesk-server/releases).
Unzip the program to the `C:\Program Files\RustDesk Server` (or anywhere you desire just make sure it
doesn't change after the service is installed). Now get back to Command prompt.
@@ -81,16 +81,16 @@ nssm start <Desired hbbr servicename>
(The method above has been tested on Windows Server Core 2022 Standard).
### or
## or
### Installing using PM2
## Installing using PM2
#### Install Node.js
### Install Node.js
Please [download](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) and install Node.js.
Node.js is the runtime environment of PM2, so you need to install Node.js first.
#### Install PM2
### Install PM2
Enter belows in `cmd.exe`, press the <kbd>Enter</kbd> key for each line, and run them line by line.
@@ -100,7 +100,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
#### Run hbbr and hbbs
### Run hbbr and hbbs
Download the Windows version of [RustDesk Server](https://github.com/rustdesk/rustdesk-server/releases). Unzip the program to the C: drive. Run the following four commands:
@@ -111,12 +111,12 @@ pm2 start hbbr.exe
pm2 save
```
#### View the log
### View the log
```cmd
pm2 log hbbr
pm2 log hbbs
```
### Alternative tutorials
## Alternative tutorials
https://pedja.supurovic.net/setting-up-self-hosted-rustdesk-server-on-windows/?lang=lat

View File

@@ -4,11 +4,11 @@ weight: 20
---
### Instalar NodeJs
## Instalar NodeJs
Por favor [Download](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) e instalar
NodeJs es el entorno de tiempo de ejecución de pm2, por lo que primero debe instalar NodeJs。
### Instalar pm2
## Instalar pm2
Ingrese los siguientes en cmd.exe, presione la tecla Intro para cada línea y ejecútelos línea por línea.
```
npm install -g pm2
@@ -16,7 +16,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
### Ejecutar hbbr y hbbs
## Ejecutar hbbr y hbbs
Descargue la versión de Windows de [server program](https://github.com/rustdesk/rustdesk-server/releases), suponiendo que lo descomprima en la unidad C. Ejecute las siguientes cuatro líneas de comandos respectivamente.
```
cd c:\rustdesk-server-windows-x64
@@ -25,7 +25,7 @@ pm2 start hbbr.exe
pm2 save
```
### Ver registro
## Ver registro
```
pm2 log hbbr
pm2 log hbbs

View File

@@ -4,11 +4,11 @@ weight: 20
---
### Installer NodeJs
## Installer NodeJs
Veuillez [Télécharger](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) et installer.
NodeJs est l'environnement d'exécution de pm2, vous devez donc d'abord installer NodeJs。
### Installer pm2
## Installer pm2
Entrez ci-dessous dans cmd.exe, appuyez sur la touche Entrée pour chaque ligne et exécutez-les ligne par ligne.
```
npm install -g pm2
@@ -16,7 +16,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
### Exécutez hbbr et hbbs
## Exécutez hbbr et hbbs
Téléchargez la version Windows du [programme serveur](https://github.com/rustdesk/rustdesk-server/releases), en supposant que vous la décompressez sur le lecteur C. Exécutez respectivement les quatre lignes de commandes suivantes.
```
cd c:\rustdesk-server-windows-x64
@@ -25,7 +25,7 @@ pm2 start hbbs.exe
pm2 save
```
### Afficher le journal
## Afficher le journal
```
pm2 log hbbr
pm2 log hbbs

View File

@@ -4,11 +4,11 @@ weight: 20
---
### NodeJs をインストール
## NodeJs をインストール
[ダウンロード](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) してインストールしてください。
NodeJs は pm2 の実行環境ですので先にNodeJsをインストールする必要があります。
### pm2 をインストール
## pm2 をインストール
cmd.exe に下記を入力し1行ごとにEnterキーを押して1行ずつ実行します。
```
npm install -g pm2
@@ -16,7 +16,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
### hbbr と hbbs を実行
## hbbr と hbbs を実行
Windows版のサーバープログラムをダウンロードします。Cドライブに解凍するのであれば以下の4行のコマンドをそれぞれ実行します。
```
cd c:\rustdesk-server-windows-x64
@@ -25,7 +25,7 @@ pm2 start hbbr.exe
pm2 save
```
### ログを確認
## ログを確認
```
pm2 log hbbr
pm2 log hbbs

View File

@@ -11,7 +11,7 @@ A política de segurança do Windows é complicada, se este tutorial não funcio
A versão GUI, `RustDeskServer.setup.exe` não é mais mantida, não recomendada.
{{% /notice %}}
### Uma encruzilhada
## Uma encruzilhada
Agora você tem duas escolhas, pode usar PM2 (mais fácil) ou NSSM (um pouco mais difícil) para iniciar o servidor RustDesk
Há alguns benefícios em usar NSSM:
- Compatibilidade com versões mais antigas do Windows (Windows Server 2008 R2/Windows 7 e anteriores, embora não testado).
@@ -25,20 +25,20 @@ Enquanto os benefícios do PM2 incluem:
- Você faz login regularmente no usuário que criou a entrada de inicialização do RustDesk
- Mais amigável ao usuário
### Instalando usando NSSM
## Instalando usando NSSM
#### Instalando NSSM
### Instalando NSSM
Por favor [baixe](https://github.com/dkxce/NSSM/releases/download/v2.25/NSSM_v2.25.zip) e extraia o NSSM, selecione a arquitetura apropriada para seu sistema Windows (se x86 use o conteúdo da pasta win32, se x64 use o conteúdo da pasta win64). É também uma boa prática mover o binário do NSSM para o diretório `Program Files\NSSM` (O NSSM uma vez iniciado como serviço, não pode ser movido do diretório onde foi colocado. assim é melhor guardá-lo em `Program Files`) do seu drive de instalação (Normalmente o drive C:).
É também aconselhável adicionar o caminho (como `C:\Program Files\NSSM`) à variável de caminho.
#### Verificando se o NSSM está instalado corretamente
### Verificando se o NSSM está instalado corretamente
Se você fez tudo corretamente, a pasta `C:\Program Files\NSSM` (neste exemplo uso o drive C: mas você pode usar qualquer drive onde instalou o Windows ou qualquer caminho que desejar) deve conter apenas o arquivo `nssm.exe`.
Usaremos `C:\Program Files\NSSM` neste exemplo.
Abra o Prompt de Comando e execute `nssm` se ver uma página de ajuda você está pronto para ir para o próximo passo.
#### Executar hbbr e hbbs
### Executar hbbr e hbbs
Baixe a versão Windows do [RustDesk Server](https://github.com/rustdesk/rustdesk-server/releases).
Descompacte o programa para `C:\Program Files\RustDesk Server` (ou onde desejar, apenas certifique-se de que não mude após o serviço ser instalado). Agora volte para o Prompt de Comando.
@@ -74,16 +74,16 @@ nssm start <Nome do serviço hbbr desejado>
(O método acima foi testado no Windows Server Core 2022 Standard).
### ou
## ou
### Instalando usando PM2
## Instalando usando PM2
#### Instalar Node.js
### Instalar Node.js
Por favor [baixe](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) e instale o Node.js.
Node.js é o ambiente de execução do PM2, então você precisa instalar o Node.js primeiro.
#### Instalar PM2
### Instalar PM2
Digite os comandos abaixo em `cmd.exe`, pressione a tecla <kbd>Enter</kbd> para cada linha, e execute-os linha por linha.
@@ -93,7 +93,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
#### Executar hbbr e hbbs
### Executar hbbr e hbbs
Baixe a versão Windows do [RustDesk Server](https://github.com/rustdesk/rustdesk-server/releases). Descompacte o programa para o drive C:. Execute os seguintes quatro comandos:
@@ -104,12 +104,12 @@ pm2 start hbbr.exe
pm2 save
```
#### Ver o log
### Ver o log
```cmd
pm2 log hbbr
pm2 log hbbs
```
### Tutoriais alternativos
## Tutoriais alternativos
https://pedja.supurovic.net/setting-up-self-hosted-rustdesk-server-on-windows/?lang=lat

View File

@@ -3,7 +3,7 @@ title: WINDOWS & PM2 或者 NSSM
weight: 20
---
## 选择哪个?
# 选择哪个?
现在您有两种选择,可以使用 PM2更简单或 NSSM更难来启动 RustDesk 服务器
使用 NSSM 有一些好处:
- 向后兼容旧版 WindowsWindows Server 2008R2/Windows 7 及更早版本,但未经测试)。
@@ -17,9 +17,9 @@ PM2 的好处包括:
- 您定期登录创建 rustdesk 启动项的用户
- 更加用户友好
## 使用 NSSM 安装
# 使用 NSSM 安装
### 安装 NSSM
## 安装 NSSM
请[下载](https://nssm.cc/release/nssm-2.24.zip)并解压NSSM选择合适的
体系结构到您的 Windows 系统(如果 x86 使用 win32 文件夹的内容,如果 x64 使用
win64 文件夹的内容)。 将 NSSM 的二进制文件移至
@@ -27,7 +27,7 @@ win64 文件夹的内容)。 将 NSSM 的二进制文件移至
因此最好将其存放在安装驱动器(通常是 C 驱动器)的 Program files目录中。
还建议将路径(例如`C:\Program Files\NSSM`)添加到路径变量中。
### 检查 NSSM 是否安装正确
## 检查 NSSM 是否安装正确
如果您已正确完成所有操作,则文件夹`C:\Program Files\NSSM`(在本例中我使用 C:
驱动器,但您可以使用安装 Windows 的任何驱动器或您想要的任何路径)
仅包含文件`nssm.exe`
@@ -36,7 +36,7 @@ win64 文件夹的内容)。 将 NSSM 的二进制文件移至
打开命令提示符并运行`nssm`,如果您看到帮助页面,则您已准备好进入下一步
### 运行 hbbr 和 hbbs
## 运行 hbbr 和 hbbs
下载Windows版本的[服务器程序](https://github.com/rustdesk/rustdesk-server/releases)。
将程序解压缩到`C:\Program Files\RustDesk Server`(或您想要的任何地方,只需确保它
安装服务后不会改变)。 现在回到命令提示符
@@ -75,15 +75,15 @@ nssm start <hbbr 服务名称>
以上方法已在Windows Server Core 2022 Standard上测试
## 或者
# 或者
## 使用 PM2 安装
# 使用 PM2 安装
### 安装NodeJs
## 安装NodeJs
请点击[下载](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi)安装,可能会有点慢,如果卡顿太久,尝试关掉重新安装。
NodeJs是pm2的运行时环境所以要先安装NodeJs。
### 安装pm2
## 安装pm2
在cmd.exe中分别输入下面三行每一行都要按回车键一行一行运行。
```
npm install -g pm2
@@ -91,7 +91,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
### 运行hbbr和hbbs
## 运行hbbr和hbbs
下载Windows版本[服务器程序](https://github.com/rustdesk/rustdesk-server/releases)假设你解压缩到了C盘下。分别运行下面四行命令。
```
cd c:\rustdesk-server-windows-x64
@@ -100,7 +100,7 @@ pm2 start hbbr.exe
pm2 save
```
### 查看log
## 查看log
```
pm2 log hbbr
pm2 log hbbs

View File

@@ -6,7 +6,7 @@ weight: 20
Windows 安全政策較為複雜,如果這份教程對您不適用,或您遇到連線不穩定的情況,請考慮轉移到 `Linux` 伺服器。
{{% /notice %}}
## 十字路口
# 十字路口
您現在有兩個選擇,您可以使用 pm2 (較簡單) 或 NSSM (稍難) 來啟動 RustDesk 伺服器
使用 NSSM 的好處:
@@ -21,19 +21,19 @@ Windows 安全政策較為複雜,如果這份教程對您不適用,或您遇
- 您會定期登入創建 RustDesk 啟動項目的使用者帳戶。
- 對使用者友好
### 使用 NSSM 安裝
## 使用 NSSM 安裝
#### 安裝 NSSM
### 安裝 NSSM
請[下載](https://nssm.cc/release/nssm-2.24.zip)並解壓縮 NSSM選擇適合您的 Windows 系統架構的版本(如果是 x86使用 win32 資料夾內的檔案;如果是 x64則使用 win64 資料夾)。最佳做法是將 NSSM 的執行檔移動到 `Program Files\NSSM` 目錄一旦作為服務啟動NSSM 不能從其放置的目錄中移動,因此最好放在 `Program Files` 中)。建議將路徑(如 `C:\Program Files\NSSM`)添加到環境變數中。
#### 檢查 NSSM 是否正確安裝
### 檢查 NSSM 是否正確安裝
如果一切正確,`C:\Program Files\NSSM` 資料夾(在這個例子中使用 C: 磁碟,但您可以使用安裝 Windows 的任何磁碟或所需的任何路徑)應該只包含 `nssm.exe` 檔案。
我們將在範例中使用 `C:\Program Files\NSSM`
打開命令提示字元並運行 `nssm`,如果您看到幫助頁面,則可以進行下一步。
#### 運行 hbbr 和 hbbs
### 運行 hbbr 和 hbbs
下載 [RustDesk 伺服器](https://github.com/rustdesk/rustdesk-server/releases)的 Windows 版本。解壓縮至 `C:\Program Files\RustDesk Server`(或任何您想要的地方,只要確保在服務安裝後不會改變)。現在回到命令提示字元。
我們將在範例中使用 `C:\Program Files\RustDesk Server`
@@ -68,16 +68,16 @@ nssm start <所需的 hbbr 服務名稱>
(以上方法已在 Windows Server Core 2022 標準版上測試。)
### 或者
## 或者
### 使用 PM2 安裝
## 使用 PM2 安裝
#### 安裝 Node.js
### 安裝 Node.js
請[下載](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi)並安裝 Node.js。
Node.js 是 PM2 的運行環境,所以您需要先安裝 Node.js。
#### 安裝 PM2
### 安裝 PM2
`cmd.exe` 中輸入以下內容,每行輸入後按 <kbd>Enter</kbd> 鍵,逐行運行。
@@ -87,7 +87,7 @@ npm install pm2-windows-startup -g
pm2-startup install
```
#### 運行 hbbr 和 hbbs
### 運行 hbbr 和 hbbs
下載 [RustDesk 伺服器](https://github.com/rustdesk/rustdesk-server/releases)的 Windows 版本。將程序解壓縮到 C: 磁碟。執行以下四個命令:
@@ -98,7 +98,7 @@ pm2 start hbbr.exe
pm2 save
```
#### 查看日誌
### 查看日誌
```cmd
pm2 log hbbr