如何在cmd命令行上撤销mongovue 官网语句

一、cmd命令行---进行Windows服务操作
1、安装服务 sc create 服务名 binPath= "C:\Users\Administrator\Desktop\win32srvDemo\win32srvdemo\Debug\win32srvDemo.exe"
注:服务名:指创建的Windows服务名
&&&&&& binPath:指Windows服务程序的路径
2、配置服务
sc config 服务名 start=AUTO
注:start=AUTO& (自动)
&&&&& start=DEMAND (手动)
&&&&& start=DISABLED& (禁用)
3、开启服务
net start 服务名
4、关闭服务
net stop 服务名
5、删除服务
sc delete 服务名
二、第一种:bat批处理---进行Windows服务操作
(新建一个txt文件,把后缀改成.bat文件)
<font color="#、创建、配置、开启服务
@echo.服务启动......
@sc create 服务名 binPath= "C:\Users\Administrator\Desktop\win32srvdemo\win32srvdemo\Debug\win32srvdemo.exe"
@net start 服务名
@sc config 服务名 start= AUTO
@echo.启动完毕!
<font color="#、关闭服务
@echo.服务关闭
@net stop 服务名
@echo.关闭结束!
<font color="#、删除服务(删除前要关闭服务)
@echo.服务删除
@sc delete 服务名
@echo.删除结束!
二、第二种:bat批处理---进行Windows服务操作
<font color="#、安装脚本Install.bat
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe "E:\wwwroot\kjsmtt\wwwroot\KJLMManagerShareOutBonus\KJLMManagerShareOutBonus.exe"
Net Start 服务名sc config 服务名 start= auto
注:第一行:Window服务执行程序的路径
&&&& 第二行:启动服务
&&&& 第三行:设置服务自动运行
&&&& 最后一行:暂停,可以查看运行信息
<font color="#、卸载脚本Uninstall.bat
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe /u "E:\wwwroot\kjsmtt\wwwroot\KJLMManagerShareOutBonus\KJLMManagerShareOutBonus.exe"
以上两种.bat 有的系统行有的不行,还不知道为什么。有懂得大神麻烦留言,谢谢。
三、SC命令
网友博客:
阅读(...) 评论()如何在 cmd 命令行中查看,修改,删除与添加环境变量_百度知道如何在命令行上执行 sql 语句_百度知道怎么让bat来运行cmd命令 并且是自动在CMD窗口里面输入一些语句?_百度知道

我要回帖

更多关于 mongovue 1.6.9 破解 的文章

 

随机推荐