lwch / natpass

🔥居家办公,远程开发神器
https://lwch.gitbook.io/natpass/
MIT License
4.13k stars 465 forks source link

windows注册服务后无法启动 & 启动远程后客户端会弹出一个终端窗口 #86

Open anlonely opened 6 months ago

anlonely commented 6 months ago

我使用powershell \np-cli.exe --conf remote.yaml 运行它可以, 但是每次远程的时候都会弹出一个终端窗口。可以无痕运行吗?

注册服务 sc.exe create natService binPath= "C:\natpass_0.13.0_windows_386\natpass_0.13.0\np-cli.exe --conf remote.yaml" start= auto

注册后无法启动该服务。win11系统

lwch commented 6 months ago

请参考文档:https://github.com/lwch/natpass/blob/master/docs/startup.md#%E6%B3%A8%E5%86%8C%E7%B3%BB%E7%BB%9F%E6%9C%8D%E5%8A%A1%E5%8F%AF%E9%80%89

anlonely commented 6 months ago

请参考文档:https://github.com/lwch/natpass/blob/master/docs/startup.md#%E6%B3%A8%E5%86%8C%E7%B3%BB%E7%BB%9F%E6%9C%8D%E5%8A%A1%E5%8F%AF%E9%80%89

文档也没有无痕运行和注册Windows服务的相关配置呀...

lwch commented 6 months ago

启动时通过-action install参数注册系统服务,然后就可以在系统服务中找到np-cli进行后续操作