Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将Windows服务端作为服务启动和后台运行 #2129

Open
Apkeniqo opened this issue Oct 25, 2024 · 3 comments
Open

将Windows服务端作为服务启动和后台运行 #2129

Apkeniqo opened this issue Oct 25, 2024 · 3 comments

Comments

@Apkeniqo
Copy link

希望能将服务端添加为Windows服务开机静默运行,免去每次开机都要手动开启服务端的麻烦
并希望服务端启动后可以静默运行,不影响电脑进行其它工作

@hatsuyuki280
Copy link
Contributor

你甚至可以立刻打开Windows的控制面板,添加一个计划任务,条件选择当Windows启动时,动作选择“启动一个程序”,填写正确路径后,勾选后台运行

这样你就不用等待这个简单应用未来什么时候提供一个额外的接口帮助你设置它了

@hatsuyuki280
Copy link
Contributor

@hatsuyuki280 如果你需要一个PowerShell命令帮助你做到上面的事,你可以Google搜索“PowerShell create a service”或者直接访问
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-service?view=powershell-7.4

@ShiinaRinne
Copy link

可以试试用 nssm 注册成服务

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants