工作原因,需要在Server 2008 安裝Framework1.1,還好老外哪里有教程,竟然安好了,特做一份安裝教程出來(lái)。
1、微軟官方網(wǎng)站
? ? ? ?Applications written using the .NET Framework 1.1 SP1 will continue to work on Windows Server 2008.
https://msdn.microsoft.com/en-us/library/cc531167.aspx 引用
所以可以安裝 同時(shí) 2.0 Service Pack 1? 3.0 Service Pack 1 在Server 2008下是默認(rèn)安裝的。
2、先安裝什么, iis or Framework1.1
應(yīng)先安裝iis ,否則在iis按完后,還要重新注冊(cè) asp.net?
2.1 安裝iis 7.0?
? ?a、在Windows Server 2008(或Windows Server 2008 R2)中,單擊“開(kāi)始”-“程序”-“管理工具”-“服務(wù)器管理”,或在“運(yùn)行”中輸入命令:servermanager.msc命令打“服務(wù)器管理”程序。
在“角色”選項(xiàng)中,單擊“添加角色”:
選擇服務(wù)器角色:Web服務(wù)器(IIS)
單擊選中“web服務(wù)器(IIS))前面的單選框。
“添加角色向?qū)А睂?duì)web服務(wù)器進(jìn)行簡(jiǎn)單介紹,之后單擊“下一步”:
選擇角色需要的相關(guān)服務(wù)之后單擊“下一步”:
確認(rèn)安裝選擇,之后單擊“下一步”:
系統(tǒng)開(kāi)始安裝所選的角色服務(wù),可能需要幾十秒可幾鐘時(shí)間:
安裝完成,點(diǎn)擊關(guān)閉即可:
或者用腳本快速安裝:新建bat 文件,內(nèi)容如下,
@echo off
color 0a
title IIS7 - iHackSoft.com
echo.
pause
echo 安裝進(jìn)行中...
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI
echo IIS安裝!
pause
執(zhí)行bat
2.2 安裝asp.net?
Install .Net 1.1
https://www.microsoft.com/en-us/download/details.aspx?id=26
.Net Framework 1.1 Service Pack 1
https://www.microsoft.com/en-us/download/details.aspx?id=33
ASP.Net Security Update for .Net Framework 1.1 Service Pack 1
https://www.microsoft.com/en-us/download/details.aspx?id=2551
3.0
啟用 ASP.Net v1.1 ISAPI Extension
%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis-enable