mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-10 11:46:41 +02:00
Update _index.en.md
This commit is contained in:
parent
ae30e1cfc6
commit
f262210b48
@ -3,7 +3,7 @@ title: Windows & PM2 or NSSM
|
||||
weight: 20
|
||||
---
|
||||
|
||||
## 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).
|
||||
@ -17,9 +17,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://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
|
||||
@ -27,7 +27,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`.
|
||||
@ -36,7 +36,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.
|
||||
@ -74,16 +74,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.
|
||||
|
||||
@ -93,7 +93,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 (take care to edit the `-r` parameter):
|
||||
|
||||
@ -104,9 +104,10 @@ pm2 start hbbr.exe
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### View the log
|
||||
#### View the log
|
||||
|
||||
```cmd
|
||||
pm2 log hbbr
|
||||
pm2 log hbbs
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user