惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

博客园 - Navicy

博客搬家公告 Dundas for Reporting Services的一些的使用技巧 发现 SQL Server 2005 Reporting Services 的一些BUG 博客更新 基于UML和ASP.NET实现三层B/S结构学籍管理系统开发 Windows的AutoRun.inf文件是近期木马、病毒传播的罪魁祸首 Windows XP SP2的WRSF安全特性导致IE使用window.open和window.showModalDialog的status=no无法关闭状态栏 “掌握Ajax”中文系列教程(转载自IBM DeveloperWorks网站) AJAX异步和回调 AJAX和XmlHttpRequest下的WEB开发 Google推出的照片管理软件Picasa VB中类的字段和属性的区别和用法 WinXP NTFS分区文件或文件夹没有“安全”选项卡的解决办法 Windows XP网络共享访问总是弹出输入Guest密码对话框的解决 安装Dreamweaver 8和Fireworks 8简体中文正式版 极品飞车8-地下狂飙2中"speed2.exe"错误解决办法 文件的ContentType类型举例 Macromedia Studio 8 发布 Windows Vista Beta 1 精彩体验
使用批处理文件命令行方式快速启动和停止IIS、SqlServer
Navicy · 2005-10-14 · via 博客园 - Navicy

       虽然现在内存便宜了,但是自己还是嫌自己的512M内存太小,没办法,后台运行的东西太多了,有很多都是有用的没法关闭的。IIS和SQLServer都是吃内存大户,所以现在只在使用到它们的时候才打开,不用的时候都随时关闭,发现每次使用管理控制台来启动和关闭IIS和SQLServer很麻烦,也很慢。现在可以写两个批处理文件使用“命令行”的方式来启动和关闭IIS、SQLServer。
         一个批处理文件start.bat,是启动:

      net start mssqlserver
      net start w3svc

一个是停止stop.bat:

    net stop mssqlserver
    net stop iisadmin /y

另外,还可以通过命名行使用iisreset命令加参数对IIS进行控制:

C:\Documents  and  Settings\Administrator>iisreset  /?

IISRESET.EXE  (c)  Microsoft  Corp.  1998-1999

Usage:
iisreset  [computername]

        /RESTART                        停止然后重新启动所有  Internet  服务。
        /START                            启动所有  Internet  服务。
        /STOP                              停止所有  Internet  服务。
        /REBOOT                          重新启动计算机。
        /REBOOTonERROR            如果在启动、停止或重新启动  Internet  服务时发生错误,则重新启动计算机。
        /NOFORCE                        假如尝试停止失败时,不要强制终止  Internet  服务。
        /TIMEOUT:val                指定超时值(以秒为单位)来等待    Internet  服务的成功终止。
                                                  假如  REBOOTonERROR  参数已被指定,超时后可以重新启动计算机。
                                                   默认值为  20  秒重新开始,60  秒停止,0  秒重新启动  。
        /STATUS                          显示所有  Internet  服务的状态。
        /ENABLE                          在本地系统上启用  Internet  服务的重新启动。
        /DISABLE                        在本地系统上禁用  Internet  服务的重新启动。

C:\Documents  and  Settings\Administrator>

posted on 2005-10-14 16:30  Navicy  阅读(1482)  评论()    收藏  举报