阿里雲主機Windwos Server 2012 環境配置隨記

若是卸載了.net4.5 服務器黑屏 用下面命令 開啓服務器桌面版(每一個/前帶空格)shell

dism /online /enable-feature /all /featurename:servercore-fullserver /featurename:server-gui-shell /featurename:server-gui-mgmtwindows

window server 2012 安裝 .net 3.5服務器

 在cn_windows_server_2012_r2_x64_dvd_2707961.iso,sources下將sxs文件夾拷貝到C盤根目錄,asp.net

sxs文件夾 可本身提取,也可網上搜索網頁共享的ui

dism.exe /online /enable-feature /all /featurename:NetFX3 /Source:c:\sxsspa

卸載 .net 4.5.net

dism /online /disable-feature /featurename:IIS-ASPNET45server

安裝.net 4.5it

dism /online /enable-feature /featurename:IIS-ISAPIFilterio

dism /online /enable-feature /featurename:IIS-ISAPIExtensions

dism /online /enable-feature /featurename:IIS-NetFxExtensibility45

dism /online /enable-feature /featurename:IIS-ASPNET45

註冊asp.net 2.0 到IIS

cd C:\Windows\Microsoft.NET\Framework64\v2.0.50727

aspnet_regiis.exe -i

相關文章
相關標籤/搜索