21 lines
623 B
Plaintext
21 lines
623 B
Plaintext
以**管理员身份**打开 PowerShell,然后执行:
|
|||
|
|
|
||
|
|
```powershell
|
||
|
|
# 安装服务
|
||
|
|
powershell.exe -ExecutionPolicy Bypass -File .\install_service.ps1 install
|
||
|
|
|
||
|
|
# 查看服务状态
|
||
|
|
powershell.exe -ExecutionPolicy Bypass -File .\install_service.ps1 status
|
||
|
|
|
||
|
|
# 启动服务
|
||
|
|
powershell.exe -ExecutionPolicy Bypass -File .\install_service.ps1 start
|
||
|
|
|
||
|
|
# 停止服务
|
||
|
|
powershell.exe -ExecutionPolicy Bypass -File .\install_service.ps1 stop
|
||
|
|
|
||
|
|
# 重启服务
|
||
|
|
powershell.exe -ExecutionPolicy Bypass -File .\install_service.ps1 restart
|
||
|
|
|
||
|
|
# 卸载服务
|
||
|
|
powershell.exe -ExecutionPolicy Bypass -File .\install_service.ps1 uninstall
|
||
|
|
```
|