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

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

博客园 - 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)  评论()    收藏  举报