⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 100165806.htm

📁 C#高级编程(第三版),顶死你们。。 。up
💻 HTM
字号:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
	
        32.5.2  net.exe
</title></head>
<body>
    <div class="area">

        

        <div class="col1">
            <div class="lineBlue">
            </div>
            <!-- title -->
            <div class="arcTitle">
                <h1>
                    <a href="../16">
                        C#高级编程(第3版)【全文连载】
                    </a>
                </h1>
                <div style="text-align: center; font-size: 15px">
                    <a href="100165806.htm">
                        32.5.2  net.exe
                    </a>
                </div>
                <div style="text-align: center; font-size: 15px">
                    <a class="url" href="../../default.htm">http://book.csdn.net/</a>
                    2006-10-13 14:41:00
                </div>
                <div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
                    <div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
                        图书导读
                    </div>
                    <div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
                        <!--导读-->
                        <h1 id="divCurrentNode" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165806.htm'><font color='red'>32.5.2  net.exe</font></a></h1>
                        <div id="divRelateNode" style="padding-left: 2px">
                        <div style='float:left;width:49%'>·<a href='100165803.htm'>32.4.6  安装程序</a></div><div style='float:right;width:49%'>·<a href='100165804.htm'>32.5  服务的监视和控制</a></div><div style='float:left;width:49%'>·<a href='100165805.htm'>32.5.1  MMC计算机管理</a></div><div style='float:right;width:49%'>·<a href='100165807.htm'>32.5.3  sc.exe</a></div><div style='float:left;width:49%'>·<a href='100165808.htm'>32.5.4  Visual Studio .NET Server Explorer</a></div><div style='float:right;width:49%'>·<a href='100165809.htm'>32.5.5  ServiceController类</a></div></div>
                    </div>
                </div>
                </div>
            <!-- main -->
            <div id="main">
                <div id="text"> <link href="css.css" rel="stylesheet" type="text/css" /><h3 style='margin-top:8.15pt;margin-right:0cm;FTEL:8.15pt;margin-left:
0cm'><a FTEL="_Toc507815586"><span lang=EN-US>32.5.2&nbsp; net.exe</span></a></h3>

<p class=MsoNormal><span lang=EN-US style='color:black'>Services</span><span
style='font-family:宋体;color:black'>管理单元使用起来很简单,但是系统管理员不能使其自动化,原因是它不能用在管理脚本中。要控制服务,可以用命令行实用程序</span><span
lang=EN-US style='color:black'>net.exe</span><span style='font-family:宋体;
color:black'>来完成。</span><span lang=EN-US style='color:black'>net start</span><span
style='font-family:宋体;color:black'>显示所有正在运行的服务,</span><span lang=EN-US
style='color:black'>net start &lt;servicename&gt;</span><span style='font-family:
宋体;color:black'>启动服务,</span><span lang=EN-US style='color:black'>net stop
&lt;servicename&gt;</span><span style='font-family:宋体;color:black'>向服务发送停止请求。此外使用</span><span
lang=EN-US style='color:black'>net pause</span><span style='font-family:宋体;
color:black'>和</span><span lang=EN-US style='color:black'>net continue</span><span
style='font-family:宋体;color:black'>可以暂停和继续服务</span><span lang=EN-US
style='color:black'>(</span><span style='font-family:宋体;color:black'>当然,它们只有在服务允许的情况下才能使用</span><span
lang=EN-US style='color:black'>)</span><span style='font-family:宋体;color:black'>。</span></p>

<p class=MsoBlockText style='margin-left:0cm;FTEL:21.25pt'><span
style='font-size:10.5pt;font-family:宋体;color:black;font-style:normal'>图</span><span
lang=EN-US style='font-size:10.5pt;color:black;font-style:normal'>32-16</span><span
style='font-size:10.5pt;font-family:宋体;color:black;font-style:normal'>所示的控制台窗口显示的是</span><span
lang=EN-US style='font-size:10.5pt;color:black;font-style:normal'>net start</span><span
style='font-size:10.5pt;font-family:宋体;color:black;font-style:normal'>的结果。</span></p>

<p align=center><span lang=EN-US><img width=312 height=157
src="32/image017.jpg"></span></p>

<p align=center style='FTEL:8.15pt'><span style='font-family:宋体;color:black'>图</span><span
lang=EN-US style='color:black'>&nbsp; 32-16</span></p>

</div>
                <!-- page -->
                <div class="page" style="text-align: center">
                    <a href="100165805.htm">上一页</a>&nbsp;&nbsp;&nbsp;<a href="index.html">首页</a>&nbsp;&nbsp;&nbsp;<a href="100165807.htm">下一页</a>
                </div>
                <div style="margin: 0px auto; width: 700px; border: solid 1px #0b5f98;">
                    <div style="float: left; width: 16px; background-color: #0b5f98; color: White; padding: 1px;">
                        图书导读
                    </div>
                    <div style="float: right; width: 670px; text-align: left; line-height: 16pt; padding-left: 2px">
                        <!--导读-->
                        <h1 id="divCurrentNode2" style="color: #b83507; width: 100%; text-align: left; font-size: 12px; padding-left: 2px">当前章节:<a href='100165806.htm'><font color='red'>32.5.2  net.exe</font></a></h1>
                        <div id="divRealteNod2" style="padding-left: 2px">
                        <div style='float:left;width:49%'>·<a href='100165803.htm'>32.4.6  安装程序</a></div><div style='float:right;width:49%'>·<a href='100165804.htm'>32.5  服务的监视和控制</a></div><div style='float:left;width:49%'>·<a href='100165805.htm'>32.5.1  MMC计算机管理</a></div><div style='float:right;width:49%'>·<a href='100165807.htm'>32.5.3  sc.exe</a></div><div style='float:left;width:49%'>·<a href='100165808.htm'>32.5.4  Visual Studio .NET Server Explorer</a></div><div style='float:right;width:49%'>·<a href='100165809.htm'>32.5.5  ServiceController类</a></div></div>
                    </div>
                </div>
                </div>
        </div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -