windows 使用sc 创建系统服务

Window 将某一程序作为系统服务 并自动启动:

在命令行执行如下命令:

sc create XXXXXXService binpath= "D:\sc\nginx\nginx.exe" displayname= "显示的服务名称自定义" depend= Tcpip start= auto

删除某以命令

sc delete 服务名称;例如sc delete xxx;

详细的sc 命令请参考:

http://blog.csdn.net/czplplp_900725/article/details/8795790

猜你喜欢

转载自314649444.iteye.com/blog/2176630