摘要:
部署WEB应用程序:1.在模板机上新建IIS站点2.安装WebDeploy后在IIS控制台中导出站点为应用程序包 其站点在新虚机上必须存在,否则会报错,如下:应用程序(C:\ProgramData\VirtualMachineManagerData\CacheResources\671f29283e96463fba29bc6586d31133\Site02_NoApp.zip、WebDeploy)安装操作在虚拟机(SERVICEVM00002)上失败。DetailedErrorMessage: Site 'Site02' does not exist. Learn more a
阅读全文
posted @ 2013-12-12 20:11
momingliu11
阅读(7671)
推荐(0)
编辑
摘要:
#将需要读取的域名和端口列表保存在名为ports01.txt、ports02的文件中,文件与脚本位于相同目录下$CurrentPath = $MyInvocation.MyCommand.Path.substring(0,$MyInvocation.MyCommand.Path.LastIndexO...
阅读全文
posted @ 2013-12-12 17:18
momingliu11
阅读(973)
推荐(0)
编辑
摘要:
$IP ="220.181.111.142"$Port ="801"Function Port-Test ($IP,$Port){ $Timeout = 1000 $Address = [System.Net.IPAddress]::Parse($IP) $Socket = New-Object System.Net.Sockets.TCPClient $Connect = $Socket.BeginConnect($Address,$Port,$null,$null) Start-Sleep-Milliseconds 100 If ( $Connect
阅读全文
posted @ 2013-12-12 14:48
momingliu11
阅读(631)
推荐(0)
编辑