cloudreve / Cloudreve

🌩支持多家云存储的云盘系统 (Self-hosted file management and sharing system, supports multiple storage providers)
https://cloudreve.org
GNU General Public License v3.0
21.8k stars 3.42k forks source link

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

Open Apkeniqo opened 2 hours ago

Apkeniqo commented 2 hours ago

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

hatsuyuki280 commented 2 hours ago

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

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

hatsuyuki280 commented 1 hour ago

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