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 ”,这是为了能够识别出该命令是否执行结束,如果不加之,那么在执行命令后会直接回到光标状态,而很难识别该命令的是否执行完毕。


猜你喜欢
- 在php程序中运用fopen或者socket的时候,报一下错误: php_network_getaddresses: getaddrinfo
- 我们非常高兴地通知大家我们即将发布一项新功能,这个功能可以让您在AdSense 账户中轻松管理您的广告单元。 &nbs
- Twitter新服务能自动为用户建交谈列表(腾讯科技配图)北京时间11月11日消息,据美国科技博客网站TechCrunch报道,美国微型博客
- IBM eServer iSeries 520 Express Edition 与中型企业不断增长的需求相适应,它不仅可以提供运行核心业务应
- 使用黑帽SEO的人,心里或多或少都存在一个假设,那就是搜索引擎没自己聪明。在前几天的搜索引擎怎样判断垃圾留言这个帖子里,就有读者认为我把搜索
- 谈网络媒体必定会反应到门户网站和针对性较强的小门户网站,媒体的效益产生于内容和舆论口碑等。而产生内容就需要来源,那么内容来自那里呢?新闻和博
- 在编程学习中,很多时候,我们希望将数据库和软件的运行进行分离,比如软件通过ip地址连接到数据库进行存储操作,但由于学习成本有限,我们通常的办
- 美国东部时间2月28日下午6时(北京时间3月1日上午7时)消息,盛大游戏(纳斯达克:GAME)于今天公布了其截至去年12月31日的2009年
- windows服务器对于系统管理员来说至关重要,近日,国外媒体曾报道过Windows服务器在营收比例方面,依然是市场上遥遥的领先者。鉴于此,
- Windows 2000 Server安装成功后,一般会启动一个默认的Web站点,为整个网络提供Internet服务。在中小型局域网中,服务
- 如果要允许用户在站点中上载或下载文件,就需要在 Web 服务器上设置 FTP。无论站点是位于 Intranet 还是位于 Internet
- 有人问到“国内以产品为王的公司有哪些?”此问题放大来谈,就是说以产品为核心竞争力的互联网有公司有哪些?问题很尖锐,因为目前以产品为核心竞争力
- 许多单位都已建立了局域网和广域网,并在网上运行业务处理程序。其实只要作一些简单配置就可以给公司员工提供新闻、信息浏览、传输文件、内部邮件、专
- 据外国媒体报道,在昨日.com 域名开放注册25周年之际,全球知名域名服务商Godaddy宣布其在3月10日注册了第4000万个域名,自此,
- 今天遇到一个项目问题,shiro如何实现一个账户同一时刻只有一session存在的问题,找了几篇文章,在这里就把核心的代码理了理,具体情况如
- 最近我们的小团队需要在服务器上共分出一个共享文件夹用于大家存放公共的资源文档, 大家想啊,这肯定很简单呀,在Windows下面只要创建相关的
- 本文主要是记录一下在apache二级目录上面部署react和vue项目。根目录下面部署很简单,但是在二级目录下就需要在webpack的配置或
- 如何设置 Web 服务器的权限?如果Web服务器的权限没有设置好,那么网站就会出现漏洞并且很可能会出现被不怀好意的人黑掉的情况。我
- 最近在搞几台虚拟机来学习分布式和大数据的相关技术,首先先要把虚拟机搞起来,搞起虚拟机第一步先安装系统,接着配置网络vmware为我们提供了三
- 古往今来,神话一直都是华夏灿烂文化的瑰宝,给人们的外在世界缔造了一个美丽的梦。今天,game2平台斥资1500万,打造耗时3年,再现上古的不