这项目终于要完了, 由于某国家部门的服务器安装配置过程过于繁杂, 系统使用镜像还原再修改配置的方法进行部署;

本文内代码遵循WTFPL协议,转载请注明来源: http://www.cnblogs.com/zaiyuzhong/p/3935155.html 

 

1. 停止/禁用服务

 1 var p = new Process();
 2 p.StartInfo = new ProcessStartInfo("cmd.exe")
 3 {
 4     UseShellExecute = false,
 5     CreateNoWindow = true,
 6     RedirectStandardInput = true
 7 };
 8 p.Start();
 9 InvokeChangeText("停止IBMWebSphere服务...");
10 p.StandardInput.WriteLine(" sc stop IBMWebSphere");
调用cmd命令sc实现

相关文章:

  • 2021-11-01
  • 2019-05-24
  • 2021-07-02
  • 2021-10-16
  • 2022-12-23
  • 2021-12-18
  • 2021-08-03
  • 2021-06-08
猜你喜欢
  • 2022-12-23
  • 2021-05-22
  • 2021-07-03
  • 2021-10-30
相关资源
相似解决方案