Office Web Apps Server 服务器
1. 准备安装软件
· 安装 Windows Server 2008 R2 Service Pack 1
· 安装 .Net 4.5 ( NDP451-KB2858728-x86-x64.3505182529.exe )
· 安装 Windows PowerShell 3.0 (Windows6.1-KB2506143-x64.msu)
· 安装补丁 (Windows6.1-KB2670838-x64.msu)
· 以管理员身份打开 Windows PowerShell 提示符,然后运行以下命令示例来安装必需的角色和服务。
i. Import-Module ServerManager
ii. Add-WindowsFeature Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Ink-Handwriting,IH-Ink-Support,NET-Framework,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-Win-CFAC
· 安装 Office Web Apps Server(wacserver.exe)
· 安装 Office Web Apps Server SP1(wacserversp2013-kb2880558-fullfile-x64-glb.exe)
· 若没安装 Office Web Apps Server SP1 ,请安装(wacserver2013-kb2810007-fullfile-x64-glb.exe)
· 安装语言包 (wacserverlanguagepack.exe)
· 以上完成以后,请重启服务器
2. 部署 Office Web Apps Server 场,执行以下 Windows PowerShell 命令
· Import-Module -Name OfficeWebApps
· New-OfficeWebAppsFarm -InternalURL "http://servername" -AllowHttp -EditingEnabled
· Get-OfficeWebAppsFarm 查看当前配置
· 通过 http://servername/hosting/discovery 验证是否成功
3. 服务器域要求:Office Web Apps Server 场中的服务器都必须是域的一部分。它们可以在同一个域 (推荐) 中或位于同一个林中的不同域中。但是,如果您尝试在域控制器上安装它,Office Web Apps Server 将不起作用。
4. 错误信息(看到“500 Web 服务异常”或“500.21 – 内部服务器错误”消息)
· 管理员打开命令行
· %systemroot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iru
· iisreset /restart /noforce
· 重启 Office Web Apps 服务
5. 参考
· 准备工作: https://technet.microsoft.com/zh-CN/library/jj219435.aspx
· 部署步骤: https://technet.microsoft.com/zh-CN/library/jj219455.aspx
· 命令参考: https://technet.microsoft.com/zh-CN/library/ee890080.aspx
6. 文件大小限制10MB,解决安装: 打开目录 C:\Program Files\Microsoft Office Web Apps\OpenFromUrlHost\Settings_Service.ini 、C:\Program Files\Microsoft Office Web Apps\OpenFromUrlWeb\Settings_Service.ini,添加一行代码 OpenFromUrlMaxFileSizeInKBytes=(System.Int32)512000,然后重启 Office Web Apps 服务
7. 设置HTTPS
· IIS 导入证书
· OWA 导入
· Set-OfficeWebAppsFarm -InternalUrl "https://WDZTFile4-TEST.wonders.com" -ExternalUrl "https://WDZTFile4-TEST.wonders.com" -CertificateName "Office Web Apps Server"
· https://technet.microsoft.com/zh-CN/library/jj219435.aspx#security
· 通配符证书需要导入后,手动绑定证书,重启OWA服务器时需要重新绑定