windows创建系统服务命令

sc <server> create [service name] [binPath= ] <option1> <option2>...

如:sc create gitea start= auto binPath= "C:giteagitea.exe"

原文地址:https://www.cnblogs.com/ShaneSun/p/9723705.html