mirror of
https://github.com/EasyTier/easytier.github.io.git
synced 2025-05-19 10:27:06 +00:00
1.2 KiB
1.2 KiB
Installing as a Windows Service
- Go to the NSSM official website [https://nssm.cc/download] to download NSSM and extract it to a local directory.
- Download the command-line version of
easytier-core.exe, remember the installation directory, such asD:\Software\Easytier\cli\easytier-core.exe. - Register it as a Windows service, naming it
easytier_service:nssm.exe install easytier_service D:\Software\Easytier\cli\easytier-core.exe --ipv4 10.144.144.2 --network-name abc --network-secret abc -e tcp://easytier.public.kkrainbow.top:11010
- Run
services.msc, locate theeasytier_serviceservice, enable it, and set it to start with a delay. - To remove the service:
nssm.exe remove easytier_service. - Note that after registering as a service, the program (referring to easytier-core.exe) cannot be modified, deleted, or moved. Otherwise, it needs to be removed for re-registration or modifying the Windows registry.
- For convenient execution of
easytier-cli.exeto view connection status, you can place it inC:\Users\Administrator(Administrator being your Windows username). Simply open cmd or PowerShell and execute, for example:easytier-cli.exe peer.