天天看點

使用Windows Server 2008 R2 Core 架設IIS伺服器

1.修改hostname(未加入域)

netdom renamecomputer %computername% /NewName:SQLServer /reboot:0

2.重命名網絡擴充卡

netsh interface set interface name="local area connection" newname="Internal"

3.修改靜态ip

netsh interface ipv4 set address name=Internal static 192.168.1.202 255.255.255.0 192.168.1.1

4.修改dns

netsh interface ipv4 set dnsserver name=Internal static 61.139.2.69 primary

5.安裝.NET Framework

dism /online /enable-feature /featurename:NetFx2-ServerCore

dism /online /enable-feature /featurename:NetFx3-ServerCore

6.配置Web伺服器角色

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

7.為伺服器安裝IIS-ASPNET角色

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

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

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

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

8.驗證IIS服務是否已經開始運作

sc query w3svc

9.安裝IIS管理服務

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

10.安裝WAS-WindowsActivationService和WAS-ConfigurationAPI

dism /online /enable-feature /featurename:WAS-WindowsActivationService

dism /online /enable-feature /featurename:WAS-ConfigurationAPI

11.更改系統資料庫鍵值來激活管理服務

Reg Add HKLM\Software\Microsoft\WebManagement\Server /V EnableRemoteManagement /T REG_DWORD /D 1

12.啟用IIS管理服務

net start wmsvc

13.驗證IIS管理服務是否已經開始運作

sc query wmsvc

繼續閱讀