网站运营
位置:首页>> 网站运营>> Server Core部署IIS7+PHP FastCGI+MySQL(3)

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
投稿

猜你喜欢

手机版 网站运营 asp之家 www.aspxhome.com