????? ????? FTP ?????? ? IIS 7.0 ?? ???? ?? ???? ??? Windows Server 2008 ?? Windows Server 2012

?????? ????????? ?????? ?????????
???? ???????: 974603 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

????? ???

???? ??? ??????? ????? ????? FTP ??????? ??????? ????? (IIS) 7.0 ?? ???? ?? ???? ??? Windows Server 2008 ?? Windows Server 2008 R2 ?? Windows Server 2012. ????? ????????? ?? ??? ??????? ??? ??? ???? FTP.

????? ?? ????????? ??? ????? ????? ????? ??? ?? ???? ?????? ????? ???? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ? Microsoft":
970759????? IIS 7.0 ?? ???? ???? ??? World Wide Web ?? ???? ??? Windows Server 2008 ?? Windows Server 2008 R2 ?? Windows Server 2012

??????? ????

?? ????????? ??????? ?? "????? ??????? ??????"? Microsoft ?????? ?????? ???? ????? ???? ??? ???? ???? ?????? ?????? ??? ??????? ???? ???????? ????????? Microsoft ?????? ????????. ??? ???? ?? ???????? ??????? ?????? ????? ????? ????????? ????? ??? ????. ????? ?? ???? Microsoft ?????? ?????? ??? ????????? ??????. ?????? IIS 7.0 ?? ???? ????? ??? ??? ???????? Windows Server ???? ?????? ????? ?????? ??? ???? ??????? ??????? ?????? ????? (??????? ????) ?????? ??????? ??????? ???? ?????. ??? ?????? ????? ???? ?????????? ????? ?????? ??????? ?????? ?????????? ?????? ???. ???? ???? ??? ?????? ?????? ??? ????? ??????? ???? ????? ??????? ???. ???????? ??? ???? ?????? ???????? ????? ??????? ????????? ???? ?? ??????? ?? IIS ???? 7.0 ???? ???? ?? ??????? ?????? ???? ?? ??????? ??????.

?????? ????? ????? ????? IIS 7.0 ???? ??? ???? Clusweb.vbs ? Clusftp.vbs ????? ??????? ?????? ???? ??? ????????? ?? IIS 6.0 ? IIS ?????? ?????? ????????. ?? ?????? ??? ??????? ?????? ?? IIS 7.0.

?? ???????? ?? ????????? ?????? ????? ??????? ???? ????? ??? (NLB) ????? ?? ??????? ???? ?????? ????? ????? ?????? ??????? ???????? ?????? ?????? ?????? ?????? ????? ??????? ????? ???? ????? ??? ??? ?????? ???? ???? ?????? IIS 7.0. ????? ?? ????? NLB ?? ?? ???? ?????? ??? ????? ???????? ?? ?????? ????????? ????? HTTP ??????. ????? ???? ??? ?? ???? NLB IIS ???? ?? ???? ???? ????? ???? rollbacks ????? ??????? ?????????? ????? ??????? ???? ????? ??????? ???. ????? ?? ????????? ??? ????? ??????? IIS 7.0 ?? ???? NLB? ?? ?????? ???? ??? Microsoft ??????? ?????:
http://learn.iis.net/page.aspx/213/network-load-balancing

http://technet.microsoft.com/en-us/library/cc770558.aspx

?????? ??????? ???? ????? ?????? IIS FTP ???????? ????? ????? ?????????:

?? ?????? ?????? ??? ???? ???? ???????? ?????? IIS ????????

  1. ????? ?????? ??? ?? ?????? ??? ???????? ???? ???? ????????? ?????? IIS ????????.
  2. ????? ?????? ???. ???? ??????? ??? ???????? ?????? ????? IIS ???????? ???? ???? ???????? ??? IIS ??? ???? ??? ???? ????????. ???? ??? ??????:
    • ??? ???? ????? ??? ???? ?? ?? ????? ????? ???? ????????? ?? ?????? ??? ?????.
    • ??? ???? ?????? ????? ????? Windows Server ???? ?? ?????? ?????? ??? ??????? ???? ?????. ????? ?? ?????????? ?? ?????? ???? ??? Microsoft ??????? ??????:
      http://technet.microsoft.com/en-us/library/cc731844.aspx
    • ??? ???? ?????? ????? ????? ??? ???? ??????? ???? ???? ???? FTP? ?? ?????? ?????? ??? ??????? ???? ?????. ????? ?? ?????????? ?? ?????? ???? Microsoft ?????? ??? ?????:
      http://technet.microsoft.com/en-us/library/cc731844.aspx
  3. ????? ???????? ??? ?????? ???? ??? ??????? ?? ?????? 2-??? ???????? ???? ??? ??????? ?? ?????? 1 ????? "?????? ??????" ??? ???????? ??????? NTFS.
  4. ???? ?? ?? ???? ??? ???? ???????? ??????? ?????? ???. ?????? ????? ??????? \\<fileservername></fileservername>\<sharename></sharename>.

????? ????? IIS ??????? ??? ???? ??? ???? ????????

??? ??? ??? ???? ???????? ????? ??????? ???????? ??????? ???????:
  1. ????? ??? ????? ??????? ???? ??? ???? ??? ????? (IIS) ????? ??????? ??????.
  2. ?? ????? ??????? ???? ??? ???? ??? ??????.
  3. ???? ????? ??????? ??? ????? ???????????.
  4. ?? ?????? "????? ????????"? ???? ??? ????? ??????? ?? ??? ????????? (????? ??????) ??? ????? ????? ??????? ?? ????????? ?????? ??? ???? ???.
  5. ?? ????? ??????? ???? ??????? ???? ???? ????? ??????? (\\<fileservernae></fileservernae>\<sharename></sharename>) ?? ?????? ?????? ????.
  6. ???? ??? ??????? ????? ?? ???? ???????? ??? ????? ?????? ????? ???????? ???? ???? ?? ?????? ??? ???????? ?? ??? ????? ????? ???????? ??? ???? ??? ?????. ???? ??????? ??? ?????? ?????? ??? ????????. ??? ???? ??????? ?????? ???? ?????? ????? ??? ????? ??????.
  7. ?? ????? ??????? ???? ??????? ???? ???? ???? ???? ???? ????????? ?????? ?????? ???????? ??? ?? ???? ??? ?????.
  8. ??? ????? ???????? ??????? ???? ??? ??? ??? ????? ??????? ???????? .
  9. ???? ?????? ?????? ????? ???????? ????? ?????? ??????? ??????? ??? ???? ??? ????? ?? ??? ?????????.
  10. ?? ???? ?????? ?????? ??????? ???? ? ???? ???? ?????? ???? ????? ??????? ??????? ?? ???? ??? ????? ????????????.
  11. ?? ???? ?????? "????? ????????"? ???? ????????.
  12. ???? ??? ?????.
??? ?? ?? ??? ???? ???????? ??????? ?????? ??????? ??????? ???? ??? ??????? ????? ???????:
  1. ????? ??? ????? ??????? ???? ??? ???? ??? ????? (IIS) ????? ??????? ??????.
  2. ???? ??? ???? ??? ??????.
  3. ???? ????? ??????? ??? ????? ???????????.
  4. ??? ????? ???????? ??????? ???? ??? ??? ??? ????? ??????? ???????? .
  5. ???? ?????? ?????? ????? ??????? (\\<fileservername>\<sharename>)? ???? ????????? ? ???? ?????? ???? ?? ??????? ??????? ??? ?? ???? ???<b00> </b00> </sharename> </fileservername>????? ?? ??? ?????????.
  6. ?? ???? ?????? ?????? ??????? ???? ? ???? ???? ?????? ???? ????? ??????? ??????? ?? ???? ??? ????? ????????????.
  7. ?? ???? ?????? "????? ????????"? ???? ????????.
  8. ???? ??? ?????.
?????? ????? ?? ????????? ??? ????? ????? ??????? ???????? ?? IIS? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://learn.iis.net/page.aspx/264/shared-configuration

????? "??????? ??? ?????" "????? IIS ????????" ??? ???? ???? ?????

??? ?? ???? ???? ????????? ????? "??????? ??? ?????":
  1. ????? ???? "?????? ???????? ?? ???????". ?????? ????? ???? ??? ???????:
    1. ????? ??? ????? ??????? ? ?? ???? ??? ????? ??????.
    2. ?? ????? ??????? ???? ??? ?????.
    3. ???? ??? ????? ????? ?? ????? ??????.
    4. ???? ?????? ??????? ??? ?????????? ???????? ??? ?? ???? ??? ??????.
    5. ???? ??? ????? ?????? ??? ?????? ?????.
    6. ?? ?????? ????? ???? ?????????.
  2. ?? "???? ??????"? ???? ??? ????? ?????.
  3. ???? ??? ????? ??????? ??? ?????. ??? ????? ??????? ????????? ??? ??? ??????.
  4. ???? ?? ?? ??? ????? ????? ??????? ?????? ??????? ???. ?????? ????? ?? ?????? ????? ?????? ?? ???? cmd ??????:
    REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v ReadOnlyCache /t REG_DWORD /d 1 /f 
  5. ?? ?????? ????? ???? ?????????.
  6. ??????? ??? ???? ????? ?? ?????????. ???? ????? ?????? ?????? ???? ????? ??? IIS ???????? ?????? ??? ?? ???? ???????? ????? ??? ?????.

    ?????? ??? ?? ????? ?????? ??????? ????? ?????? ???? ??? ??? ???? ?????? ????? ????? ???? ?????? ????? IIS? ????? ????? ??? ????? ????? ?????? ?? ???? ??? ?????? ??? ???????? ??? ??? ???? ???? ???????? ???????? ??? ?????? ???? ??????? ???????? ???? ????. ??? ???? ??? ???? ????? ???? ??????? ???????? ????? ????.
  7. ?? "???? ??????"? ???? ??? ????? ?????. ???? ??? ??? "???? ????????"? ?? ???? ????????? ??????.
  8. ????? ?????? ????? ??? ????? ??? ??? ?? ???????? ??? ??????. ????? ???? ????? ???????? ??? ????? ?????? ?? ???? ?????. ??? ??? ?? ??? ?????? ????? "?????"? ????? ???? ?????? ??? ?? ?? ??? Applicationhost.config, ????? ??????? ??? ???? ???.
?????? ????? ?? ????????? ??? ????? ????? ????? ????? ??? ????? ????? ?????? ?? IIS? ?? ?????? ???? Microsoft ?????? ??? ?????:
http://learn.iis.net/page.aspx/212/offline-files-for-shared-configuration

????? ???? FTP ?? ??? ???? ??????? ??? ??? ???? ???? ????????

?????? ??? ???? ???? ???????? ???? ???? ?????? ???? ????? ??? ????? ???? ????? ????? ???? FTP:
  1. ????? ??? ????? ??????? ???? ??? ???? ??? ????? ???? ?????? ????? ?????.
  2. ??????? ????? ????????. ??? ??? ???? ??? ??? ?????? ??? ?????? ????? ??? ??????? ????????.
  3. ??? ???????? ?????? ??? ???? ????? ??? ??? ????? ????? ???? FTP. ?????? ????? ?? ?????? ???? ??????? ???? ?????. ???? ?? ??? ??????? ??????? ??? ?? ????? ???? ???? ??????? ??? ???? ????????. ???? ??????? ???????? ??????? ????????.
  4. ???? ???? ???? ???????? ???? ??? ??? ?????? ??? ??????. ????? ???? ????? IIS ??? ???? ???? ???????? ???.
  5. ???? ??? ???? ??? ??????. ???? ??????? ??? ????? ???????.
??? ???? ???? ???????? ???? ??? ??? ??????? ?????? ????? ???? FTP ???????? ????? ??????? ????? ???? FTP:
  1. ????? ??? ????? ??????? ???? ??? ???? ??? ????? (IIS) ????? ??????? ??????.
  2. ?? ????? ??????? ?? ?????? ???? ??? ??????.
  3. ?? ?????? ?????? ???? ????? ???????????? ?? ???? ??? ????? ???? FTP.
  4. ?? ????? ???? FTP ??????? ???? ?????? ???. ????? ?????? ???? ?????? ??? ???? FTP ???? ????? ?????. ??? ?? ?????? ???? ???? ?????? ????? ?? ??? ??????? ?? ?????? 5 ?? ??????? ??????.
  5. ????? ??????? ???? FTP ????????.
  6. ???? ??? "?????".

????? ??????? ???? ????? ????? FTP ?? ???? ????? ?????? ??? ??? ?? ????? ???? ?????? ????? ?????

?????? ??????? ?????? ??????? ???? ????? ? FTP ??????? ????? ???? ???????? ????? ????? ???? ???? ???????? ??????? FTP ??????:
  1. ??? ?? ???? ???? ????????? ??? ???????? ????? ?? ????? ??? ??????? ? Windows\System32\inetsrv\Clusftp7.vbs.
  2. ????? ??? ????? ??????? ???? ??? ???? ??? ????? ???? ?????? ????? ?????.
  3. ??????? ????? ????????. ??? ??? ???? ??? ??? ?????? ??? ?????? ????? ??? ??????? ????????.
  4. ?? ?????? ?????? ??? ????????? ??? ?? ???? ??? ????? ???? ?? ?????. ???? ????? ??????? ???? ????? ??? ?????.
  5. ???? ??? ???????? ????? ?????.
  6. ??? ??? ???????? ????? ?? ?????? ??????:
    %systemroot%\System32\Inetsrv\Clusftp7.vbs
  7. ????? ??? ???? ???? ?????? (CAP) ??? ??? ???? FTP ???? ????????? ??????? ??????? ????? FTP ??????? ???? ?????. ????? ???? ??????? ????????? ????? FTP ?????? ???????????. ??? ??? ?????? ???????? ????? ?????? ?????? (DHCP)? ????? ??? ?????? ?? ??? ???.
  8. ??? ??? ??????? ??????? ??? ??? ????? ?????? ???? ???? ????? ????? ???? FTP. ??????? ??? ?? ???? ??? ????????? ?? ??? ?? ????? ??????? ???? ????? ?????? ?? ??????. ??? ???? ?????? ??????? ???? ?????? IIS ?????? ??? ??????? ????????? ??? ??? ??????? ???? ??? ????? ??? ??????? ???.
  9. ??? ?????? ?? ?????????? ????? ??????? ?????? ???????? ??? ???????? ?????? ???? ?????? ???? ???? ???????? ??? ?? ????? ??????? ??? ??????.
?????? ???????? ??? ????? FTP ??????? ???? ????? ??? ????? ????? ??? ????????? ???? ??? ??????? ???????? ?????. ?????? ??????? ??? ??? ???????? ????? ???? ????? ????? FTP ??? ???? ???????? ??? ??? ????? ???????? ?????. ??? ???? ??? ??? ?????? ??????? ?????? ??? ????? FTP ???????? ?????? ??? ???????? ????? ?????? ??? ???? FTP ?????? ?????? ???????? ????? ??????. ??? ???? ??????? ?? systemroot%\System32\Inetsrv %? ?????? Clusftp7.vbs ????? ?????? ???????? ??? ??????? ?? ??????? Clftp7-2.vbs ????? ???????? Clftp7-3.vbs ??????? ?????. ????? ?? ??? ???????? ????? ???? FTP ???.

??????????? ????? ?????? ?????? ????? ??? ???? ?????? ???? ???? ?? ??? Microsoft. ???? ??????? ??? ???????? ????? ?? ???? ????? IIS 7.0 ?? IIS 7.5 IIS 8.0 FTP ??? ???????? ???????.
'This script provides high availability for IIS FTP websites
'The script is applicable to:
'   - Windows Server 2008: Microsoft FTP Service 7.5 for IIS 7.0 (available for download from microsoft.com)
'   - Windows Server 2008 R2: FTP Service in the box

'More thorough and application-specific health monitoring logic can be added to the script if needed


Option Explicit



'Helper script functions


'Start the FTP service on this node
Function StartFTPSVC()

    Dim objWmiProvider
    Dim objService
    Dim strServiceState
    Dim response

    'Check to see if the service is running
    set objWmiProvider = GetObject("winmgmts:/root/cimv2")
    set objService = objWmiProvider.get("win32_service='ftpsvc'")
    strServiceState = objService.state

    If ucase(strServiceState) = "RUNNING" Then
        StartFTPSVC = True
    Else
        'If the service is not running, try to start it
        response = objService.StartService()

        'response = 0  or 10 indicates that the request to start was accepted
        If ( response <> 0 ) and ( response <> 10 ) Then
            StartFTPSVC = False
        Else
            StartFTPSVC = True
        End If
    End If
    
End Function



'Cluster resource entry points. More details here:
'http://msdn.microsoft.com/en-us/library/aa372846(VS.85).aspx

'Cluster resource Online entry point
'Make sure the FTP service is started
Function Online( )

    Dim bOnline
    'Make sure FTP service is started
    bOnline = StartFTPSVC()

    If bOnline <> True Then
        Resource.LogInformation "The resource failed to come online because ftpsvc could not be started."
        Online = False
        Exit Function
    End If

    Online = true 

End Function

 
'Cluster resource offline entry point
'On offline, do nothing.
Function Offline( )

    Offline = true

End Function


'Cluster resource LooksAlive entry point
'Check for the state of the FTP service
Function LooksAlive( )

    Dim objWmiProvider
    Dim objService
    Dim strServiceState
 
    set objWmiProvider = GetObject("winmgmts:/root/cimv2")
    set objService = objWmiProvider.get("win32_service='ftpsvc'")
    strServiceState = objService.state

    if ucase(strServiceState) = "RUNNING" Then
	LooksAlive = True
    Else
	LooksAlive = False
    End If

End Function


'Cluster resource IsAlive entry point
'Do the same health checks as LooksAlive
'If a more thorough than what we do in LooksAlive is required, this should be performed here
Function IsAlive()   

    IsAlive = LooksAlive

End Function


'Cluster resource Open entry point
Function Open()

    Open = true

End Function


'Cluster resource Close entry point
Function Close()

    Close = true

End Function


'Cluster resource Terminate entry point
Function Terminate()

    Terminate = true

End Function

???????

???? ???????: 974603 - ????? ??? ??????: 02/????? ??????/1434 - ??????: 1.0
????? ???
  • Microsoft Internet Information Services 7.0
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise without Hyper-V
  • Windows Server 2008 Datacenter without Hyper-V
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Datacenter
  • Microsoft Internet Information Services 7.5
  • Windows Server 2008 R2 for Itanium-Based Systems
  • Microsoft Internet Information Services 8.0
  • Windows Server 2012 Datacenter
  • Windows Server 2012 Standard
  • Windows Server 2012 Essentials
  • Windows Server 2012 Foundation
????? ??????: 
kbclustering kbsurveynew kbexpertiseinter kbexpertiseadvanced kbhowto kbmt KB974603 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????974603

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com