windows下启动服务的cmd命令

来源:互联网 发布:慈溪行知职高宿舍照片 编辑:程序博客网 时间:2024/04/26 06:16
在cmd下可有两种方法启动服务,net和sc。
net用于打开没有被禁用的服务,语法是:
net start 服务名    //启动
net stop 服务名     //停止
用sc可打开被禁用的服务,语法是:
sc config 服务名 start= demand     //手动
sc condig 服务名 start= auto       //自动
sc config 服务名 start= disabled //禁用
sc start 服务名
sc stop   服务名
0 0
原创粉丝点击