mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-18 22:30:01 +00:00
working on self-host
This commit is contained in:
42
content/self-host/windows/_index.en.md
Normal file
42
content/self-host/windows/_index.en.md
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
|
||||
### Install NodeJs
|
||||
Please [Download](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) and install.
|
||||
NodeJs is the runtime environment of pm2, so you need to install NodeJs first。
|
||||
|
||||
### Install pm2
|
||||
Enter belows in cmd.exe, press the Enter key for each line, and run them line by line.
|
||||
```
|
||||
npm install -g pm2
|
||||
npm install pm2-windows-startup -g
|
||||
pm2-startup install
|
||||
```
|
||||
|
||||
### Run hbbr and hbbs
|
||||
Download the windows version of [server program](https://github.com/rustdesk/rustdesk-server/releases), assuming you unzip it to the C drive. Run the following four lines of commands respectively.
|
||||
```
|
||||
cd c:\rustdesk-server-windows-x64
|
||||
pm2 start hbbr.exe -- -m <Registered email address>
|
||||
pm2 start hbbs.exe -- -r <The address of the host where hbbr is running> -m <Registered email address>
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### View log
|
||||
```
|
||||
pm2 log hbbr
|
||||
pm2 log hbbs
|
||||
```
|
||||
|
||||
### Modify email
|
||||
For example, the new registered email address is test@test.com, and the public address of hbbr is test.hbbr.com
|
||||
```
|
||||
pm2 delete hbbr hbbs
|
||||
cd c:\rustdesk-server-windows-x64
|
||||
pm2 start hbbr.exe -- -m test@test.com
|
||||
pm2 start hbbs.exe -- -r test.hbbr.com -m test@test.com
|
||||
pm2 save
|
||||
```
|
||||
42
content/self-host/windows/_index.fr.md
Normal file
42
content/self-host/windows/_index.fr.md
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
|
||||
### 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
|
||||
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
|
||||
npm install pm2-windows-startup -g
|
||||
pm2-startup install
|
||||
```
|
||||
|
||||
### 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
|
||||
pm2 start hbbr.exe -- -m <Adresse e-mail enregistrée>
|
||||
pm2 start hbbs.exe -- -r <L'adresse de l'hôte sur lequel hbbr est exécuté> -m <Adresse e-mail enregistrée>
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### Afficher le journal
|
||||
```
|
||||
pm2 log hbbr
|
||||
pm2 log hbbs
|
||||
```
|
||||
|
||||
### Modifier l'e-mail
|
||||
Par exemple, la nouvelle adresse e-mail enregistrée est test@test.com, et l'adresse publique de hbbr est test.hbbr.com
|
||||
```
|
||||
pm2 delete hbbr hbbs
|
||||
cd c:\rustdesk-server-windows-x64
|
||||
pm2 start hbbr.exe -- -m test@test.com
|
||||
pm2 start hbbs.exe -- -r test.hbbr.com -m test@test.com
|
||||
pm2 save
|
||||
```
|
||||
41
content/self-host/windows/_index.zh.md
Normal file
41
content/self-host/windows/_index.zh.md
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
title: Windows
|
||||
weight: 20
|
||||
---
|
||||
|
||||
### 安装NodeJs
|
||||
请点击[下载](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi)安装,可能会有点慢,如果卡顿太久,尝试关掉重新安装。
|
||||
NodeJs是pm2的运行时环境,所以要先安装NodeJs。
|
||||
|
||||
### 安装pm2
|
||||
在cmd.exe中分别输入下面三行,每一行都要按回车键,一行一行运行。
|
||||
```
|
||||
npm install -g pm2
|
||||
npm install pm2-windows-startup -g
|
||||
pm2-startup install
|
||||
```
|
||||
|
||||
### 运行hbbr和hbbs
|
||||
下载Windows版本[服务器程序](https://gitee.com/rustdesk/rustdesk-server/releases),假设你解压缩到了C盘下。分别运行下面四行命令。
|
||||
```
|
||||
cd c:\rustdesk-server-windows-x64
|
||||
pm2 start hbbr.exe -- -m 注册邮箱地址
|
||||
pm2 start hbbs.exe -- -r hbbr运行所在主机的地址 -m 注册邮箱地址
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### 查看log
|
||||
```
|
||||
pm2 log hbbr
|
||||
pm2 log hbbs
|
||||
```
|
||||
|
||||
### 更换注册邮箱
|
||||
比如新的注册邮箱是test@test.com,hbbr的公网地址是test.hbbr.com
|
||||
```
|
||||
pm2 delete hbbr hbbs
|
||||
cd c:\rustdesk-server-windows-x64
|
||||
pm2 start hbbr.exe -- -m test@test.com
|
||||
pm2 start hbbs.exe -- -r test.hbbr.com -m test@test.com
|
||||
pm2 save
|
||||
```
|
||||
Reference in New Issue
Block a user