一、基礎(chǔ)環(huán)境準(zhǔn)備
- 安裝干凈的
Windows Server 2012 R2 - 安裝必需的角色和服務(wù)
管理員模式運(yùn)行PowerShell,執(zhí)行下面命令
Add-WindowsFeature Web-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,InkandHandwritingServices,NET-Framework-Features,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45,Windows-Identity-Foundation,Server-Media-Foundation
- 安裝必需的軟件
二、安裝 Office Online Server
三、將服務(wù)器加入 AD 域
- 將計(jì)算機(jī)加入 AD 域
高級(jí)系統(tǒng)設(shè)置→計(jì)算機(jī)名→更改→隸屬于域 - 將域用戶(hù)加入本地
Administrators組
本地用戶(hù)和組→組→Administrators→添加到組 - 切換為域用戶(hù)登錄
四、部署 Office Online Server 場(chǎng)
管理員模式運(yùn)行 PowerShell,執(zhí)行下面命令
Import-Module -Name OfficeWebApps
New-OfficeWebAppsFarm -InternalURL "http://officeonline.company.ad" -ExternalURL "http://officeonline.company.ad" -AllowHttp -EditingEnabled -OpenFromUrlEnabled