참조사이트
Install and configure IIS on Windows Server Core 2016 – Cloud Journeyman
In a previous post we covered using the System Preparation Tool to convert a VM into a VM Template in XenServer. Once we have used this template to create a new VM, it’s time to set it up as an IIS web server to host some ASP.Net MVC applications. Revisi
www.cloudjourneyman.com
Internet Information Services (IIS) on Server Core
Running Internet Information Services (IIS) on Server Core instead of the regular Windows Server 2012 has some advantages. In today’s part of my Server Core series, I will show you how to install a web server on Server Core.
4sysops.com
Windows Server-Server Core에 포함 된 역할, 역할 서비스 및 기능
Windows Server의 Server Core 설치 옵션에 포함 된 역할 및 기능은 무엇입니까?
docs.microsoft.com
● 파워쉘을 실행한다
d:\> powershell
● 설치된것들이 무엇인지 확인한다
PS > Get-WindowsFeature
● 만들어진 사이트 조회
PS > Get-WebSite
또는 Get-Website -Name "사이트명"
PS > Get-Website -Name "ServerCore"
● 웹서버 설치
HTML과 스크립트만 가능한 상태
( install-WindowsFeature Web-Server -IncludeManagementTools ( 관리자 툴 설치 ) )
PS > install-windowsfeature Web-WebServer
● Install IIS Remote Management Service ( 원격 관리 서비스 설치 )
PS > Install-windowsFeature Web-Mgmt-Service
● 원격 관리 서비스 설치 레지스트리 변경
Enable Remote Management (Web Management)
PS > Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\WebManagement\Server -Name EnableRemoteManagement -Value 1
● 방화벽 추가
PS > netsh advfirewall firewall add rule name=”Allow Web Management” dir=in action=allow service=”WMSVC”
● IIS 서비스 중지하기
PS > Net Stop W3SVC
● IIS 서비스 시작하기
PS > Net Start W3SVC
● ASP를 실행하고자 한다면
PS > install-windowsfeature Web-ASP
● ASP .net 3.5 를 실행하고자 한다면
PS > install-windowsfeature Web-ASP-Net
● ASP .net 4.5 를 실행하고자 한다면
PS > install-windowsfeature Web-ASP-Net45
● ASP .net 4.6 를 실행하고자 한다면
PS > install-windowsfeature NET-Framework-45-ASPNET
● SMTP 설치
PS > Install-WindowsFeature -name SMTP-Server
● 웹사이트 조회하기
PS > Get-webSite
● 웹사이트 시작하기
PS> Start-webSite -Name "사이트명"
PS > Start-webSite -Name "serverCore"
● 웹사이트 중지하기
Stop-webSite -Name "사이트명"
PS > Stop-webSite -Name "serverCore"
● 사이트 URL 가져오기
Get-WebURL "IIS:\sites\사이트명"
PS > Get-WebURL "IIS:\sites\serverCore"
● 웹사이트 상태
Get-WebsiteState -Name "사이트명"
PS > Get-WebsiteState -Name "serverCore"
● 웹사이트 만들기
-HostHeader 는 로컬 IP주소나 도메인명
New-WebSite -Name 웹사이트이름 -Port 포트번호 -HostHeader 로컬IP주소 -IPAddress "*" -PhysicalPath "물리적 경로"
New-WebSite -Name 웹사이트이름 -Port 포트번호 -HostHeader 도메인명 -IPAddress "*" -PhysicalPath "물리적 경로"
PS > New-WebSite -Name ServerCore -Port 81 -HostHeader 192.168.219.216 -IPAddress "*" -PhysicalPath "c:\webRoot\serverCore"
● 웹사이트 삭제하기
Remove-webSite -Name "사이트명"
PS > Remove-webSite -Name "사이트명"
● 가상디렉토리 조회 하기
Get-WebVirtualDirectory -Site "사이트명"
PS > Get-WebVirtualDirectory -Site "ServerCore"
● 가상디렉토리 추가하기
New-WebVirtualDirectory -Site "사이트명" -Name "가상디렉토리명" -PhysicalPath "물리적경로"
PS > New-WebVirtualDirectory -Site "ServerCore" -Name "vDir" -PhysicalPath "C:\inetpub\wwwroot\virtual_dir"
● 가상디렉토리 삭제하기
Remove-WebVirtualDirectory -Site "사이트명" -Name "가상디렉토리명" -PhysicalPath "물리적경로"
PS > New-WebVirtualDirectory -Site "ServerCore" -Name "vDir" -PhysicalPath "C:\inetpub\wwwroot\virtual_dir"
● 웹바인딩 추가하기
New-webBinding -Name "사이트명" -IPAddress "*" -Port "Port번호" -HostHeader "도메인명"
PS > New-webBinding -Name "ServerCore" -IPAddress "*" -Port "88" -HostHeader "abc.net"
● 웹바인딩 삭제하기
Remove-webBinding -Name "사이트명" -Port "Port번호"
PS > Remove-WebBinding -Name "serverCore"-Port "88"
'Windows > Command' 카테고리의 다른 글
* disk letter change & remove : 디스크 드라이브 문자 변경 및 제거 (0) | 2022.01.29 |
---|---|
* windows hostname change : 윈도우즈 컴퓨터 이름 바꾸기 (0) | 2022.01.29 |
firewall batch file / windows 방화벽 조회,추가,수정,삭제 배치파일 (0) | 2022.01.28 |
* 200 PORT command successful. Consider using PASV (1) | 2022.01.14 |
windows system info / 윈도우즈 시스템 정보 보기 (0) | 2020.11.13 |