This commit is contained in:
5idereal
2023-07-13 19:06:05 +08:00
committed by GitHub
parent 1b9a14bbe4
commit 784cbf4ea5
12 changed files with 73 additions and 73 deletions

View File

@@ -4,13 +4,13 @@ weight: 20
---
## A cross roads
You now either have two choices, you can either use pm2 (easier) or NSSM (a bit harder) to start the rustdesk server
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 2008R2/Windows 7 and earlier although untested).
- Backwards compatibility with older Windows (Windows Server 2008R2/Windows 7 and earlier although untested).
- Ideal for Windows Server
- Auto start on boot without login (The user who created the startup entry does not need to log on for it to start).
- Running both binaries as Services.
- Standalone (no dependency on nodejs)
- Standalone (no dependency on Node.js)
While the benefits of pm2 include:
- Good idea if you run the server on the same computer as your main work computer
@@ -20,25 +20,25 @@ While the benefits of pm2 include:
## Installing using NSSM
### Installing NSSM
Please [download](https://nssm.cc/release/nssm-2.24.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
Please [download](https://nssm.cc/release/nssm-2.24.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
`Program Files\NSSM` (NSSM once started as a service, it cannot be moved from the directory it was placed in.
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.
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
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`.
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`.
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
Download the Windows version of [server program](https://github.com/rustdesk/rustdesk-server/releases).
Download the Windows version of [server program](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
@@ -50,8 +50,8 @@ nssm install "RustDesk hbbr Service" "C:\Program Files\RustDesk Server\hbbr.exe"
**Note:**
- You can change `RustDesk hbbs service` to whatever you desire to name hbbs the service
- You can change `RustDesk hbbr service` to whatever you desire to name hbbr the service
- You can change `C:\Program Files\RustDesk Server\hbbs.exe` to wherever you placed the rustdesk binaries
- You can change `C:\Program Files\RustDesk Server\hbbr.exe` to wherever you placed the rustdesk binaries
- You can change `C:\Program Files\RustDesk Server\hbbs.exe` to wherever you placed the RustDesk binaries
- You can change `C:\Program Files\RustDesk Server\hbbr.exe` to wherever you placed the RustDesk binaries
- You do not need the `-k _` option which is optional, it's just for better security
**Command templates:**
@@ -64,14 +64,14 @@ nssm install <Desired hbbr servicename> <RustDesk hbbr binary path> <RustDesk hb
```
**Start services**
After successful instalationof services they need to be started.
After successful installation of services, they need to be started.
```cmd
nssm start <Desired hbbs servicename>
nssm start <Desired hbbr servicename>
```
**Done !**
**Done!**
(The method above has been tested on Windows Server Core 2022 Standard).
@@ -79,10 +79,10 @@ nssm start <Desired hbbr servicename>
## Installing using pm2
### Install NodeJs
### Install Node.js
Please [download](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) and install NodeJS.
NodeJs is the runtime environment of pm2, so you need to install NodeJs first。
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
@@ -101,7 +101,7 @@ Download the Windows version of [server program](https://github.com/rustdesk/rus
```cmd
cd c:\rustdesk-server-windows-x64
pm2 start hbbs.exe -- -r <The host where hbbr is running>
pm2 start hbbr.exe
pm2 start hbbr.exe
pm2 save
```

View File

@@ -20,25 +20,25 @@ Terwijl de voordelen van pm2 zijn:
## Installeren met NSSM
### NSSM Installeren
Ga naar [download](http://nssm.cc/release/nssm-2.24.zip) en pak NSSM uit, selecteer de juiste
architectuur van uw Windows systeem ( indien x86, gebruik de inhoud van de win32 map, indien x64, gebruik de
inhoud van de win64-map). Het is ook het beste om de bestanden van NSSM in de map
Ga naar [download](http://nssm.cc/release/nssm-2.24.zip) en pak NSSM uit, selecteer de juiste
architectuur van uw Windows systeem ( indien x86, gebruik de inhoud van de win32 map, indien x64, gebruik de
inhoud van de win64-map). Het is ook het beste om de bestanden van NSSM in de map
`Program Files\NSSM` (als NSSM als service is gestart, kan het niet meer verplaatst worden uit de map waarin het is geplaatst.
U kunt het dus het beste onderbrengen in de map Program files) van uw installatiestation (meestal station C).
U kunt het dus het beste onderbrengen in de map Program files) van uw installatiestation (meestal station C).
Het is ook raadzaam om het path (zoals `C:\Program Files\NSSM`) toe te voegen aan de path variabele.
### Controleren of NSSM goed is aangemaakt
Als je alles goed hebt gedaan moet de map `C:\Program Files\NSSM` (in dit voorbeeld gebruik ik de C:
schijf, maar je kunt de schijf gebruiken waarop je Windows hebt staan of welk ander path je wilt).
alleen het bestand `nssm.exe` bevatten.
Als je alles goed hebt gedaan moet de map `C:\Program Files\NSSM` (in dit voorbeeld gebruik ik de C:
schijf, maar je kunt de schijf gebruiken waarop je Windows hebt staan of welk ander path je wilt).
alleen het bestand `nssm.exe` bevatten.
In dit voorbeeld gebruiken we `C:\Program Files\NSSM`.
Open het Commando prompt (CMD) en voer `nssm` uit, als je een help pagina ziet bent je klaar om naar de volgende stap te gaan
### Voer hbbr en hbbs uit
Download de Windows versie van het [serverprogramma] (https://github.com/rustdesk/rustdesk-server/releases).
Unzip het programma naar `C:\Program Files\RustDesk Server` (of waar je maar wilt, zorg ervoor dat
Download de Windows versie van het [serverprogramma] (https://github.com/rustdesk/rustdesk-server/releases).
Unzip het programma naar `C:\Program Files\RustDesk Server` (of waar je maar wilt, zorg ervoor dat
het niet verandert nadat de service is ingesteld). Ga nu terug naar de Command prompt
In dit voorbeeld gebruiken we `C:\Program Files\RustDesk Server`.
@@ -80,7 +80,7 @@ nssm start <Desired hbbr servicename>
### Installeer NodeJs
Ga naar [download](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) en installeer NodeJS.
Ga naar [download](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) en installeer Node.js.
NodeJs is de runtime-omgeving van pm2, dus u moet NodeJs eerst installeren。
### Installeer pm2
@@ -100,7 +100,7 @@ Download de Windows-versie van het [serverprogramma] (https://github.com/rustdes
```cmd
cd c:\rustdesk-server-windows-x64
pm2 start hbbs.exe -- -r <De host waar hbbr draait>
pm2 start hbbr.exe
pm2 start hbbr.exe
pm2 save
```

View File

@@ -5,9 +5,9 @@ weight: 20
### Установка NodeJS
Скачайте [NodeJS](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) и установите.
NodeJS - это среда исполнения для pm2。
### Установка Node.js
Скачайте [Node.js](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi) и установите.
Node.js - это среда исполнения для pm2。
### Установка pm2
В консоли (cmd, PowerShell, и т.п.) используйте команды: