命令 sc create ElasticSearch binPath= "D:\elasticsearch-5.2.0\bin\elasticsearch.bat" type= share start= auto displayname= "elasticSearch Services"
描述:
在注册表和服务数据库中创建服务项。
用法:
sc <server> create [service name] [binPath= ] <option1> <option2>...