>[info] 有一些Server自帶安裝Windows Service命令,如Apache,Redis等,請閱讀其官方文檔安裝Windows Service
### 以下為通用Windows Service安裝命令,以管理員身份打開終端運行
### 安裝服務
```
set serviceName=MyWindowsService
set binPath="?C:\Path\To\Your\Service.exe -arg"
sc create %serviceName% binPath=%binPath% start= auto
```
### 刪除服務
```
sc delete MyWindowsService
```