Server Core部署IIS7+PHP FastCGI+MySQL(3)

作者:佚名 来源:IT168 时间:2008-11-22 09:15:00 



在 Server Core 下安装 IIS7 有两种方法,一个是使用“ocsetup”命令,而另外一个也就是网上轻易能查找到的“pkgmgr”方式,两者的区别我会在以后与大家详细探讨,而此次则以“pkgmgr”命令进行安装支持 CGI 的 IIS7。首先我们可以使用“oclist”命令来列出当前的角色功能安装状态。内容如下所示:

Use the listed update names with Ocsetup.exe to install/uninstall a server role or optional feature.

Adding or removing the Active Directory role with OCSetup.exe is not supported. It can leave your server in an unstable state. Always use DCPromo to install or uninstall Active Directory.

Microsoft-Windows-ServerCore-Package
Not Installed:BitLocker
Not Installed:BitLocker-RemoteAdminTool
Not Installed:IIS-WebServerRole
|
|--- Not Installed:IIS-FTPPublishingService
| |
| |--- Not Installed:IIS-FTPServer
| |
|
|
|--- Not Installed:IIS-WebServer
| |
| |--- Not Installed:IIS-ApplicationDevelopment
| | |
| | |--- Not Installed:IIS-ASP
| | |
| | |
| | |--- Not Installed:IIS-CGI
| | |
| | |
| | |--- Not Installed:IIS-ISAPIExtensions
| | | |
| | | |--- Not Installed:IIS-ASP
| | | |
| | |
| | |
| | |--- Not Installed:IIS-ISAPIFilter
| | |
| | |
| | |--- Not Installed:IIS-ServerSideIncludes
| | |
| |
| |
| |--- Not Installed:IIS-CommonHttpFeatures
| | |
| | |--- Not Installed:IIS-DefaultDocument
| | |
| | |
| | |--- Not Installed:IIS-DirectoryBrowsing
| | |
| | |
| | |--- Not Installed:IIS-HttpErrors
| | |
| | |
| | |--- Not Installed:IIS-HttpRedirect
| | |
| | |
| | |--- Not Installed:IIS-StaticContent
| | |
| |
| |
| |--- Not Installed:IIS-HealthAndDiagnostics
| | |
| | |--- Not Installed:IIS-CustomLogging
| | |
| | |
| | |--- Not Installed:IIS-HttpLogging
| | |
| | |
| | |--- Not Installed:IIS-HttpTracing
| | |
| | |
| | |--- Not Installed:IIS-LoggingLibraries
| | |
| | |
| | |--- Not Installed:IIS-ODBCLogging
| | |
| | |
| | |--- Not Installed:IIS-RequestMonitor
| | |
| |
| |
| |--- Not Installed:IIS-Performance
| | |
| | |--- Not Installed:IIS-HttpCompressionDynamic
| | |
| | |
| | |--- Not Installed:IIS-HttpCompressionStatic
| | |
| |
| |
| |--- Not Installed:IIS-Security
| | |
| | |--- Not Installed:IIS-BasicAuthentication
| | |
| | |
| | |--- Not Installed:IIS-ClientCertificateMappingAuthentication
| | |
| | |
| | |--- Not Installed:IIS-DigestAuthentication
| | |
| | |
| | |--- Not Installed:IIS-IISCertificateMappingAuthentication
| | |
| | |
| | |--- Not Installed:IIS-IPSecurity
| | |
| | |
| | |--- Not Installed:IIS-RequestFiltering
| | | |
| | | |--- Not Installed:IIS-ASP
| | | |
| | |
| | |
| | |--- Not Installed:IIS-URLAuthorization
| | |
| | |
| | |--- Not Installed:IIS-WindowsAuthentication
| | |
| |
|
|
|--- Not Installed:IIS-WebServerManagementTools
| |
| |--- Not Installed:IIS-IIS6ManagementCompatibility
| | |
| | |--- Not Installed:IIS-LegacyScripts
| | |
| | |
| | |--- Not Installed:IIS-Metabase
| | | |
| | | |--- Not Installed:IIS-FTPServer
| | | |
| | | |
| | | |--- Not Installed:IIS-LegacyScripts
| | | |
| | |
| | |
| | |--- Not Installed:IIS-WMICompatibility
| | | |
| | | |--- Not Installed:IIS-LegacyScripts
| | | |
| | |
| |
| |
| |--- Not Installed:IIS-ManagementScriptingTools
| |
|
Not Installed:NetworkLoadBalancingHeadlessServer
Not Installed:SNMP-SC
Not Installed:TelnetClient
Not Installed:WAS-WindowsActivationService
|
|--- Not Installed:WAS-ProcessModel
| |
| |--- Not Installed:IIS-ASP
| |
| |
| |--- Not Installed:IIS-BasicAuthentication
| |
| |
| |--- Not Installed:IIS-CGI
| |
| |
| |--- Not Installed:IIS-ClientCertificateMappingAuthentication
| |
| |
| |--- Not Installed:IIS-CustomLogging
| |
| |
| |--- Not Installed:IIS-DefaultDocument
| |
| |
| |--- Not Installed:IIS-DigestAuthentication
| |
| |
| |--- Not Installed:IIS-DirectoryBrowsing
| |
| |
| |--- Not Installed:IIS-HttpCompressionDynamic
| |
| |
| |--- Not Installed:IIS-HttpCompressionStatic
| |
| |
| |--- Not Installed:IIS-HttpErrors
| |
| |
| |--- Not Installed:IIS-HttpLogging
| |
| |
| |--- Not Installed:IIS-HttpRedirect
| |
| |
| |--- Not Installed:IIS-HttpTracing
| |
| |
| |--- Not Installed:IIS-IISCertificateMappingAuthentication
| |
| |
| |--- Not Installed:IIS-IPSecurity
| |
| |
| |--- Not Installed:IIS-ISAPIExtensions
| | |
| | |--- Not Installed:IIS-ASP
| | |
| |
| |
| |--- Not Installed:IIS-ISAPIFilter
| |
| |
| |--- Not Installed:IIS-LoggingLibraries
| |
| |
| |--- Not Installed:IIS-ODBCLogging
| |
| |
| |--- Not Installed:IIS-RequestFiltering
| | |
| | |--- Not Installed:IIS-ASP
| | |
| |
| |
| |--- Not Installed:IIS-RequestMonitor
| |
| |
| |--- Not Installed:IIS-ServerSideIncludes
| |
| |
| |--- Not Installed:IIS-StaticContent
| |
| |
| |--- Not Installed:IIS-URLAuthorization
| |
| |
| |--- Not Installed:IIS-WindowsAuthentication
| |
|
Not Installed:WindowsServerBackup

 

在了解了系统角色和功能的安装状态之后,就可以根据需要来进行 IIS7 + CGI 的定制安装。为此,键入“start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-CGI;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-Performance;IIS-HttpCompressionStatic;WAS-WindowsActivationService;WAS-ProcessModel”,注意:命令行中间没有换行。有关 pkgmgr 安装 IIS7 的有关参数可以参考:在 Server Core 下执行 IIS7 的完整安装、脚本方式安装 IIS7、IIS7安装场景对照表,这几篇日志。其实经过我个人亲身实践证明,IIS7 的默认安装包含了静态内容的访问支持,而这些功能也正是我们所需要的,那么我个人认为使用“ocsetup”反而更为简便,因为不需要再输入繁琐的命令参数。在执行“start /w ocsetup IIS-WebServerRole”后,再执行“start /w ocsetup WAS-WindowsActivationService”,才算真正的安装上了 IIS7,因为 IIS7 需要 “WAS-WindowsActivationService”支持。至此,还只是完成了一半,因为我们完成了 IIS7 的默认安装,并没有安装上 CGI 支持,为此我们还需要执行“start /w ocsetup IIS-CGI”才是真正的完成安装,当安装了“IIS-CGI”后系统会提示重新启动,根据向导完成即可!而使用“pkgmgr”则不会出现此步骤,而两者的区别也并非仅仅如此!这里,大家不禁要问到为什么每个执行命令先都要加上“start /w ”,这是为了能够识别出该命令是否执行结束,如果不加之,那么在执行命令后会直接回到光标状态,而很难识别该命令的是否执行完毕。

标签:
0
投稿

猜你喜欢

  • 用MDaemon搭建邮件服务器(上)

    2007-11-14 13:35:00
  • WordPress程序网站IXWebHosting空间搬家实战教程

    2011-12-23 19:01:54
  • phpwind社区房产v2.3功能曝光 支持地图找房

    2011-05-19 17:18:00
  • 网站优化如何操作 做好九个方面基础工作

    2008-12-30 10:12:00
  • 如何搞好美食网站的前期定位和运营

    2009-03-02 15:24:00
  • Apache的ReWrite的应用mod_rewrite模块使用

    2010-04-04 18:44:00
  • Linux下的邮件系统概述

    2007-08-24 13:41:00
  • Linux下Mail服务器架设攻略

    2007-08-13 14:12:00
  • 对于企业网站的seo想法

    2007-10-22 13:52:00
  • 网易网站部业务大调整:分拆资讯与产品内容

    2010-03-08 08:29:00
  • Pay Per Click 广告模式并不一定适合你

    2009-04-15 14:20:00
  • 我做站 我快乐(学生站长的生活)

    2008-04-15 15:26:00
  • 选择IDC服务商的重要性

    2008-06-25 13:15:00
  • Windows 2000 上配置和应用安全模板

    2009-12-02 19:03:00
  • 关于Flash网站的SEO优化

    2008-10-06 12:47:00
  • 通过博客达到宣传网站的效果

    2009-04-07 13:00:00
  • PHP None-Thread Safe与Thread Safe(非线程安全与线程安全)版本的选择

    2010-02-10 12:23:00
  • 修改 Z-Blog博客评论用户无url链接跳转网站

    2011-08-30 19:26:50
  • 用ASP实现网页保密的两种方法

    2007-09-19 12:13:00
  • DEDECMS专题制作方法

    2010-12-08 16:25:00
  • asp之家 网站运营 m.aspxhome.com