office web app server 文件预览部署&& wopi 集成使用

对于需要进行office 套件文档预览的时候大部分大家使用的是插件,或者类似的,解决方案,微软已经为我们提供了比较好的解决
方案 office web app server (目前名称是office online server)

部署安装

我安装使用的是windows server 2012 r2

同时机器需要加入域,域控于app server 不能部署在一起,具体参考文档

.net framework 4.5

  • powershell 安装需要的功能
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
  • 安装office web app server

需要的软件包 链接:https://pan.baidu.com/s/1TBZznZLuxkcd1OSuZD3YLw 密码:pamu

 a.  office web app  server 安装
 b.  sp1 安装(实际上a 中已经安装了,包已经包含)
 c.  安装语言包
  • 部署访问

需要使用域账户操作

New-OfficeWebAppsFarm -InternalURL "http://servername" –ExternalURL "http://address" -AllowHttp 

wopi 接口

有几个接口是必须添加的

  • 必须实现的接口,具体实现参考下面的参考github
wopi/files/{name}/contents
wopi//files/{name} 

参考截图


参考资料

https://github.com/rongfengliang/ows-project
https://technet.microsoft.com/zh-cn/library/jj219455.aspx
https://technet.microsoft.com/zh-cn/library/jj219435.aspx

posted on 2018-06-05 11:06  荣锋亮  阅读(757)  评论(0编辑  收藏  举报

导航