zoukankan      html  css  js  c++  java
  • PAUSE IIS website

    this.serviceController1 = new ServiceController();
                this.serviceController1.ServiceName = "W3SVC";
                if (this.serviceController1.Status == ServiceControllerStatus.Running)
                {
                    try
                    {
                        this.serviceController1.Pause();
                        this.serviceController1.WaitForStatus(ServiceControllerStatus.Paused);
                        MessageBox.Show("已经暂停Internet信息服务默认网站。", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message, "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                }

  • 相关阅读:
    python操作文件
    匿名函数 列表生成式 字典生成式 递归
    pecan API调用
    lvm磁盘分区
    PasteDeploy部署Pecan API 服务
    oslo_service服务
    python pbr 打包
    stevedore动态加载模块
    mongodb 副本集部署
    python装饰器
  • 原文地址:https://www.cnblogs.com/greencolor/p/1787903.html
Copyright © 2011-2022 走看看