Windows手动添加服务 sc create
2022/1/4 7:10:09
本文主要是介绍Windows手动添加服务 sc create,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
命令行创建服务项: sc create
用法:
sc <server> create [service name] [binPath= ] <option1> <option2>...
选项:
注意: 选项名称包括等号,等号和值之间需要一个空格。
type= <own|share|interact|kernel|filesys|rec|userown|usershare> (默认 = own)
start= <boot|system|auto|demand|disabled|delayed-auto> (默认 = demand)
error= <normal|severe|critical|ignore> (默认 = normal)
binPath= <.exe 文件的 BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <依存关系(以 / (斜杠)分隔)>
obj= <AccountName|ObjectName> (默认= LocalSystem)
DisplayName= <显示名称>
password= <密码>
示例:将 Redis 添加到服务,以管理员身份运行命令提示符
sc create Redis6.2.6 binPath= "D:\Redis6.2.6\redis-server.exe --service-run \"D:\Redis6.2.6\redis-windows.conf\"" DisplayName= Redis6.2.6 start= auto
命令中的双引号使用反斜杠加引号 \" 来进行转义处理
设置服务的描述: sc description
用法:
sc <server> description [service name] [description]
示例:修改 Redis 描述
sc description Redis6.2.6 "This service runs the Redis server"
这篇关于Windows手动添加服务 sc create的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-13PingCAP 戴涛:构建面向未来的金融核心系统
- 2024-05-09flutter3.x_macos桌面os实战
- 2024-05-09Rust中的并发性:Sync 和 Send Traits
- 2024-05-08使用Ollama和OpenWebUI在CPU上玩转Meta Llama3-8B
- 2024-05-08完工标准(DoD)与验收条件(AC)究竟有什么不同?
- 2024-05-084万 star 的 NocoDB 在 sealos 上一键起,轻松把数据库编程智能表格
- 2024-05-08Mac 版Stable Diffusion WebUI的安装
- 2024-05-08解锁CodeGeeX智能问答中3项独有的隐藏技能
- 2024-05-08RAG算法优化+新增代码仓库支持,CodeGeeX的@repo功能效果提升
- 2024-05-08代码报错不用愁,CodeGeeX一键完成代码修复、错误解释的功能上线了!