빠른 시작: 격리된 Hyper-V 환경에 단일 서버 배포(SharePoint Server 2010)

 

적용 대상: SharePoint Foundation 2010, SharePoint Server 2010

마지막으로 수정된 항목: 2016-11-30

격리된 안전한 Hyper-V 가상 컴퓨터를 사용하여 SharePoint Server 2010의 기능 및 동작을 테스트할 수 있습니다. 이 방법의 경우 최소 하드웨어 리소스를 사용하며 SharePoint Server 2010 테스트 시스템을 프로덕션 환경과 격리시킬 수 있도록 합니다. 회사 네트워크 및 서버 환경에 대한 잠재적인 보안 위협을 제거하기 위해 이러한 격리가 권장됩니다.

수동 단계 또는 이 문서에서 제공하는 Windows PowerShell 2.0 명령을 사용하여 다음 데이터베이스 중 하나를 사용하는 단일 서버에 SharePoint Server 2010을 빠르게 배포할 수 있습니다.

  • SharePoint Server과(와) 함께 제공되는 기본 제공 SQL Server 2008 Express 및 SQL Server 2008 R2 Express 데이터베이스

  • SP3(서비스 팩 3) 및 누적 업데이트 3이 설치된 Microsoft SQL Server 2005

  • Microsoft SQL Server 2008 서비스 팩 1(SP1) 및 누적 업데이트 2

중요

이 문서에서 설명하는 단일 서버 SharePoint Server 배포는 평가 및 테스트용일 뿐이며 프로덕션 환경에서 사용해서는 안 됩니다.

이 문서의 내용

  • 요구 사항 및 권장 사항

  • 필요한 사용 권한

  • 배포 전 작업

  • 수동으로 SharePoint Server 2010 배포

  • Windows PowerShell 스크립트를 사용하여 SharePoint Server 2010 배포

요구 사항 및 권장 사항

Hyper-V 가상화 서버, 가상 컴퓨터 및 배포 환경에 대한 다음과 같은 요구 사항 및 권장 사항은 이 문서에서 설명하는 단일 서버 배포 시나리오에 적용됩니다.

가상화 서버 및 가상 컴퓨터 구성

다음 표에서는 가상화 서버 및 가상 컴퓨터의 최소 및 권장 구성을 제공합니다. 이러한 구성은 단일 서버 배포에 사용 가능한 데이터베이스 옵션을 지원합니다.

리소스 최소 요구 사항 권장 요구 사항

CPU

듀얼 프로세서, 2GHz

듀얼 프로세서, 2GHz

메모리

4기가비트(GB)

8GB

하드 드라이브

40GB 용량의 고정 크기 가상 하드 디스크

고정 크기의 가상 하드 디스크를 만드는 속도를 높이려면 초기에 하드 디스크를 동적 확장으로 구성하십시오. 필수 소프트웨어(SharePoint Server 포함)를 모두 설치한 후에는 가상 하드 디스크를 고정 크기 하드 디스크로 변환해야 합니다.

80GB 용량의 고정 크기 가상 하드 디스크

네트워크 어댑터 종류

가상

가상

네트워크 유형

내부: 가상 컴퓨터 격리를 확실히 하고 가상화 서버와 가상 컴퓨터 통신을 사용 가능하게 함

필수 및 권장 소프트웨어를 쉽게 액세스하고 설치하려면 외부 네트워크를 사용하십시오. SharePoint Server를 설치할 준비가 되면 내부 네트워크를 사용하도록 가상 컴퓨터를 구성해야 합니다.

내부: 가상 컴퓨터 격리를 확실히 하고 가상화 서버와 가상 컴퓨터 통신을 사용 가능하게 함

가상화 서버에 대해 다음과 같은 구성 지침이 제공됩니다.

  • 논리 대 가상 프로세서(코어) 비율은 가능한 한 낮아야 하며 1:1이 최적의 비율입니다.

  • 1:1의 논리 대 가상 프로세서 비율을 사용할 경우 가상 컴퓨터의 총 프로세서 수가 물리적 코어의 총 수보다 적도록 가상화 서버를 구성해야 합니다. 예를 들어 4 코어 가상화 서버를 사용할 경우 3개의 가상 컴퓨터에서 단일 프로세서를 사용하거나 한 개의 가상 컴퓨터에서 두 개의 프로세서를 사용하고 한 개의 가상 컴퓨터에서는 한 개의 프로세서를 사용하도록 구성하는 것이 좋습니다. 두 가지 구성 중 어느 쪽을 사용해도 가상화 서버 프로세스를 위해 한 개의 코어가 사용 가능한 상태로 남습니다.

가상 컴퓨터에 SharePoint Server 2010을 배포하기 전에 가상 환경에 대한 위의 요구 사항 외에도 하드웨어 및 소프트웨어 요구 사항(SharePoint Server 2010)에서 추가적인 요구 사항을 확인하십시오.

배포 환경

SharePoint Server 2010을 배포하려면 도메인이 필요합니다.

SharePoint Server 2010을 배포하는 데 사용할 수 있는 격리된 가상 도메인이 없는 경우 다음을 사용하도록 구성된 Hyper-V에서 가상 도메인을 만들어야 합니다.

  • AD DS(Active Directory Domain Services)가 설치된 도메인 컨트롤러

  • DNS 서버가 설치된 도메인 컨트롤러

도메인 컨트롤러에 SharePoint Server를 배포할 수 있습니다. 그러나 몇 가지 구성을 수행해야 합니다. '관리자 권한으로 실행' 옵션을 사용하여 Windows PowerShell을 시작하고 다음과 같은 명령을 실행하여 도메인 컨트롤러에서 배포를 사용하도록 설정해야 합니다.

$acl = Get-Acl HKLM:\System\CurrentControlSet\Control\ComputerName 
$person = [System.Security.Principal.NTAccount]"Users" 
$access = [System.Security.AccessControl.RegistryRights]::FullControl 
$inheritance = [System.Security.AccessControl.InheritanceFlags]"ContainerInherit, ObjectInherit" 
$propagation = [System.Security.AccessControl.PropagationFlags]::None 
$type = [System.Security.AccessControl.AccessControlType]::Allow 
$rule = New-Object System.Security.AccessControl.RegistryAccessRule($person, $access, $inheritance, $propagation, $type) 
$acl.AddAccessRule($rule) 
Set-Acl HKLM:\System\CurrentControlSet\Control\ComputerName $acl

필요한 사용 권한

SharePoint Server 2010을 설치하려면 가상 컴퓨터에서 사용하는 로그온 계정이 다음 그룹의 구성원이어야 합니다.

  • 가상 컴퓨터의 로컬 Administrators 그룹

  • SQL Server dbcreator 고정 서버 역할

  • SQL Server securityadmin 서버 역할

자세한 내용은 관리 및 서비스 계정(SharePoint Server 2010)을 참조하십시오.

배포 전 작업

SharePoint Server 2010을 배포하기 전에 다음과 같은 작업을 완료하십시오.

  • 가상화 서버에서 SharePoint Server 소프트웨어가 포함된 설치 지점을 만들거나 가상 컴퓨터에서 액세스할 수 있는 미디어(예: ISO 이미지)를 제공합니다.

  • 이 문서의 전반부 섹션인 "요구 사항 및 권장 사항"에 설명된 최소 요구 사항을 충족하는 가상 컴퓨터를 만듭니다.

  • 가상 컴퓨터에서

수동으로 SharePoint Server 2010 배포

단일 서버에 SharePoint Server 2010을 수동으로 배포하는 방법에 대한 자세한 내용은 기본 제공 데이터베이스가 포함된 단일 서버 배포(SharePoint Server 2010) 또는 SQL Server가 설치된 단일 서버 배포(SharePoint Server 2010)를 참조하십시오.

PowerShell 스크립트로 SharePoint Server 2010 배포

Windows PowerShell 스크립트를 사용하여 단일 서버에 SharePoint Server 2010을 배포할 수 있습니다.

보안 참고 사항Security Note
최상의 방법으로 서명이 없는 스크립트는 실행하지 않아야 합니다.
Windows PowerShell 스크립트에 서명하는 방법에 대한 자세한 내용은 TechNet Magazine의 Windows PowerShell: 여기 서명해 주세요(https://go.microsoft.com/fwlink/?linkid=160357&clcid=0x412)를 참조하십시오. 일반적인 코드 서명에 대한 자세한 내용은 MSDN의 코드 서명 소개(영문일 수 있음)(https://go.microsoft.com/fwlink/?linkid=59273&clcid=0x412)(영문일 수 있음)를 참조하십시오. 사용자의 CA(인증 기관)를 설정하는 방법에 대한 자세한 내용은 TechNet Library의 Active Directory 인증서 서비스(영문일 수 있음)(https://go.microsoft.com/fwlink/?linkid=136444&clcid=0x412)(영문일 수 있음)를 참조하십시오.

다음 Windows PowerShell 스크립트 파일 중 하나를 만들고 사용하여 단일 서버에 SharePoint Server를 배포하십시오.

  • simplesingleserver.ps1: 기본 제공 데이터베이스를 사용하는 SharePoint Server 2010을 설치하여 구성 정보 및 문서를 저장합니다.

  • simplefarm.ps1: SQL Server 2005 또는 SQL Server 2008을 사용하는 SharePoint Server 2010을 설치하여 구성 정보 및 문서를 저장합니다.

simplesingleserver.ps1

이 스크립트는 단일 서버에 기본 제공된 데이터베이스를 사용하는 SharePoint Server 2010을 배포합니다.

다음 코드를 텍스트 편집기로 복사한 후 원하는 디렉터리에서 파일을 simplesingleserver.ps1로 저장하십시오.



$SetupPath         = Read-Host -Prompt "Please specify the path to the install media (D:)"
        
## Here is the script to install SharePoint Server 2010 with SQL Express and create Central Admin ##
& $SetupPath\PrerequisiteInstaller.exe /unattended | Write-Host
if( $lastexitcode -eq 0 ) {
    & $SetupPath\setup.exe /config $SetupPath\Files\SetupSilent\config.xml | Write-Host
    if( $lastexitcode -eq 0 ) {
        Write-Host "Install successful..."
    } else { Write-Error "ERROR: $lastexitcode" }
} else { Write-Error "ERROR: $lastexitcode" }

simplesingleserver.ps1을 실행하려면

  1. 설치 원본에서 Files\SetupSilent 디렉터리로 이동한 다음 텍스트 편집기에서 config.xml을 엽니다.

  2. <!--<PIDKEY Value="Enter Product Key Here" />--> 행을 찾습니다.

  3. "Enter Product Key Here"를 PIDKEYs: PKXTJ-DCM9D-6MM3V-G86P8-MJ8CY 또는 BV7VC-RMR6B-26P6Y-BTQDG-DX2KQ로 바꿉니다.

  4. 편집한 코드 행의 주석 표시를 제거한 다음 config.xml 파일을 저장합니다.

  5. '관리자 권한으로 실행' 옵션을 사용하여 Windows PowerShell 2.0을 실행합니다.

  6. simplesingleserver.ps1을 저장한 디렉터리로 이동합니다.

  7. Windows PowerShell 명령 프롬프트에서 .\simplesingleserver.ps1을 실행합니다.

simplefarm.ps1

이 스크립트는 단일 서버에 SQL Server 데이터베이스를 사용하는 SharePoint Server 2010을 배포합니다. 다음 코드를 텍스트 편집기로 복사한 다음 원하는 디렉터리에서 파일을 simplefarm.ps1로 저장하십시오.


## Settings you may want to change ##
$err = $null
$SetupPath         = Read-Host -Prompt "Please specify the path to the install media (D:)"
Write-Host "Please specify the Farm Administrator credentials"
$FarmCredential    = Get-Credential "DOMAIN\<Farm Admin>"
$DBServer          = Read-Host -Prompt "Please enter the name of your database server"
$Passphrase        = Read-Host -Prompt "Please enter the farm passphrase (optional)" -AsSecureString
$FarmName          = Read-Host -Prompt "Please enter a farm name (optional)"
$CAPort            = Read-Host -Prompt "Please enter the Central Administration port number (optional)"

if ([String]::IsNullOrEmpty($SetupPath))
{
    Write-Error "You must enter the install media path"
    return
}
if ([String]::IsNullOrEmpty($FarmCredential))
{
    Write-Error "You must enter a Farm Administrator's user name and password"
    return
}
if ([String]::IsNullOrEmpty($DBServer))
{
    Write-Error "You must enter a database server"
    return
}
if ($Passphrase.Length -eq 0)
{
    Write-Warning "You didn't enter a farm passphrase, using the Farm Administrator's password instead"
    $Passphrase = $FarmCredential.Password
}
if ([String]::IsNullOrEmpty($FarmName))
{
    Write-Warning "You didn't enter a farm name, using the machine name instead"
    $FarmName = $env:COMPUTERNAME
}
if ([String]::IsNullOrEmpty($CAPort))
{
    Write-Warning "You didn't enter a Central Administration port number, using 5000 instead"
    $CAPort = 5000
}

## Here is the script to install SharePoint Server 2010 and create Central Admin ##
Write-Host "[1/15] Running prerequisite installer..." 
& $SetupPath\PrerequisiteInstaller.exe /unattended | Write-Host
if( $lastexitcode -eq 0 ) {
    Write-Host "[2/15] Running silent farm binary installation... (this will take some time)" 
    & $SetupPath\setup.exe /config $SetupPath\Files\SetupFarmSilent\config.xml | Write-Host
    Write-Host "[3/15] Completed silent farm binary installation." 
    if( $lastexitcode -eq 0 ) {
        Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
        Write-Host "[4/15] Creating new configuration database..." 
        New-SPConfigurationDatabase -DatabaseName ("{0}_SharePoint_Configuration_DB" -f $FarmName) -DatabaseServer $DBServer -AdministrationContentDatabaseName ("{0}_AdminContent_DB" -f $FarmName) -FarmCredentials $FarmCredential -Passphrase $Passphrase -ErrorVariable err
        Write-Host "[5/15] Verifying farm creation..." 
        $spfarm = get-spfarm
            if ($spfarm -ne $null) {
            Write-Host "[6/15] ACLing SharePoint Resources..." 
            Initialize-SPResourceSecurity -ErrorVariable err
            if ([String]::IsNullOrEmpty($err) -eq $true) {
                Write-Host "[7/15] Installing Services..." 
                Install-SPService -ErrorVariable err
                    if ([String]::IsNullOrEmpty($err) -eq $true) {
                    Write-Host "[8/15] Installing Features..." 
                    Install-SPFeature -AllExistingFeatures -ErrorVariable err
                    if ([String]::IsNullOrEmpty($err) -eq $true) {
                        Write-Host "[9/15] Provisioning Central Administration..." 
                        New-SPCentralAdministration -Port $CAPort -WindowsAuthProvider "NTLM" -ErrorVariable err
                        if ([String]::IsNullOrEmpty($err) -eq $true) {
                            Write-Host "[10/15] Installing Help..." 
                            Install-SPHelpCollection -All -ErrorVariable err
                            if ([String]::IsNullOrEmpty($err) -eq $true) {
                                Write-Host "[11/15] Installing Application Content..." 
                                Install-SPApplicationContent -ErrorVariable err
                                if ([String]::IsNullOrEmpty($err) -eq $true) {
                                    Write-Host "[12/15] Basic configuration completed." 
                                    $SPManagedAccount = Get-SPManagedAccount $FarmCredential.UserName
                                    Write-Host "[13/15] Creating Web Application and Application Pool..." 
                                    $webApp = New-SPWebApplication -Name "SharePoint - 80" -ApplicationPool "SharePoint - 80" -ApplicationPoolAccount $SPManagedAccount -DatabaseServer $DBServer -DatabaseName ("{0}_Content_DB" -f $FarmName) -Url "https://localhost" -ErrorVariable err
                                    if ([String]::IsNullOrEmpty($err) -eq $true) {
                                        Write-Host "[14/15] Creating site collection..." 
                                        $SPSite = New-SPSite -url "https://localhost" -OwnerAlias $FarmCredential.UserName -ErrorVariable err
                                        if ([String]::IsNullOrEmpty($err) -eq $true) {
                                            Write-Host "[15/15] Port 80 Web application and site collect created.  Browse to https://localhost to pick a template for the Web..."
                                        } else { Write-Error "ERROR: $err" }
                                    } else { Write-Error "ERROR: $err" }
                                } else { Write-Error "ERROR: $err" }
                            } else { Write-Error "ERROR: $err" }
                        } else { Write-Error "ERROR: $err" }
                    } else { Write-Error "ERROR: $err" }
                } else { Write-Error "ERROR: $err" }
            } else { Write-Error "ERROR: $err" }
        } else { Write-Error "ERROR: $err" }
    } else { Write-Error "ERROR: $lastexitcode" }
} else { Write-Error "ERROR: $lastexitcode" }
 
$exitprompt = Read-Host -Prompt "Press Enter to exit..."

simplefarm.ps1을 실행하려면

  1. 설치 원본에서 Files\SetupFarmSilent 디렉터리로 이동한 다음 텍스트 편집기에서 config.xml을 엽니다.

  2. <!--<PIDKEY Value="Enter Product Key Here" />--> 행을 찾습니다.

  3. "Enter Product Key Here"를 PIDKEYs: PKXTJ-DCM9D-6MM3V-G86P8-MJ8CY 또는 BV7VC-RMR6B-26P6Y-BTQDG-DX2KQ로 바꿉니다.

  4. 편집한 코드 행의 주석 표시를 제거한 다음 config.xml 파일을 저장합니다.

  5. '관리자 권한으로 실행' 옵션을 사용하여 Windows PowerShell 2.0을 실행합니다.

  6. simplefarm.ps1을 저장한 디렉터리로 이동합니다.

  7. Windows PowerShell 명령 프롬프트에서 .\simplefarm.ps1을 실행합니다.