office online server 在server 2012,2016上部署

office online 在server 2012,2016上部署


1、准备一台域控,加域。

2、加域后,powershell 管理员运行:

server 2012 R2 上运行:

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

server 2016:

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,NET-Framework-Features,NET-Framework-45-Features,NET-Framework-Core,NET-Framework-45-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45,Windows-Identity-Foundation,Server-Media-Foundation

3、安装vsc++ 2013,2015;framework4.5.2,MicrosoftIdentityExtensions

Office Online Server安装所需依赖以下软件包:

.NET Framework 4.5.2

Visual C++ Redistributable Packages for Visual Studio 2013

Visual C++ Redistributable for Visual Studio 2015

Microsoft.IdentityModel.Extention.dll - MicrosoftIdentityExtensions-64.msi

Server 12需要安装windows更新:

Windows8.1-KB2919442-x64.msu
Windows8.1-KB2919355-x64.msu
Windows8.1-KB2999226-x64.msu


完成后重启,powershell导入包:

Import-Module -Name OfficeWebApps

创建officeonline:这里office.officeonline.com 为你自己的域名,用IP也行

New-OfficeWebAppsFarm -InternalURL "http://office.officeonline.com" -ExternalURL "http://office.officeonline.com" -AllowHttp -EditingEnabled -OpenFromUrlEnabled -OpenFromUNCEnabled

  • internalurl -内部访问地址
  • externalurl -外部访问地址
  • allowhttp -允许http
  • EditingEnabled -开启编辑
  • openfromurlenabled -开启from地址

成功后,使用chrome浏览器测试地址:
http://office.officeonline.com/op/generate.aspx#

http://office.officeonline.com/hosting/discovery

查看日志有无报错:
C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ConsoleOutput

然后共享一个文件(可浏览器访问下载的那种):

http://www.officeonline.com/api/wopi/Files/TRTest.docx

把地址复制到http://office.officeonline.com/op/generate.aspx# 这个页面的第一个输入框,点击CreateLink,把下面生成的地址,复制浏览器访问,正常打开即可。!








发布了22 篇原创文章 · 获赞 1 · 访问量 6905

猜你喜欢

转载自blog.csdn.net/soulman1234/article/details/104924471