Develop
windows server add webservice
작은이야기
2016. 1. 12. 18:03
Install-WindowsFeature -ConfigurationFilePath C:\Users\Administrator\Desktop\DeploymentConfigTemplate.xml
$appPort=1205
$appName="FKGameServer"
$physicalPath="c:\"+$appName
$existFolder=Test-Path $physicalPath
If(-Not $existFolder) { New-Item -ItemType directory -Path $physicalPath }
New-NetFirewallRule -DisplayName $appName -Action Allow -Direction Inbound -Enabled True -LocalPort $appPort -Protocol 6
New-Website -Name $appName -PhysicalPath $physicalPath -Port $appPort