希望将alist注册成系统服务实现开机自启动
- Lingua principale
- Go
- Stelle
- 50.2k
- Fork
- 7.9k
- Merge medio
- 7g 21h
- PR unite (30g)
- 6
Descrizione
### Please make sure of the following things
- [X] I have read the [documentation](https://alist.nn.ci).
- [X] I'm sure there are no duplicate issues or discussions.
- [X] I'm sure this feature is not implemented.
- [X] I'm sure it's a reasonable and popular requirement.
### Description of the feature / 需求描述
目前常用方式是编写vbs脚本,并将其放入启动文件夹来实现开机自启动,用户需要自行下载脚本,希望可以一步到位。
在本地使用alist需要将alist命令行在后台一直开着,适合将其注册成系统服务在后台运行,不用弹出任何窗口,做到完全勿打扰。
另外注册成服务
### Suggested solution / 实现思路
目前启动alist,需要使用命令行“alist server”,希望alist在后续开发中添加/a参数,在命令行输入"alist server /a"确认后,自动将alist注册成系统服务并设置开机自启动
### Additional context / 附件
目前尝试过多种方式均在运行一会儿后停止服务,估计是alist不符合注册成系统服务的要求
1.通过系统命令SC输入 ` sc create binPath="C:\Program Files\alist\alist.exe" server`
2.通过第三方工具nssm
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.