官方文档:https://docs.microsoft.com/zh-cn/officeonlineserver/deploy-office-online-server
table of contents
目录
Buy Server
服务器购买
镜像选择 window server 2016
保证两台服务在同一安全组 可建立域关系
Server Config
域控及转换器配置
参考链接
创建域:
https://help.aliyun.com/document_detail/52565.html?spm=5176.10695662.1996646101.searchclickresult.51fe2337ka86sG
创建域用户及加入域:
https://www.cnblogs.com/lovezilv/p/11016845.html
域控设置
-
进入自定义域控服务器中
-
添加角色和功能
-
安装类型:基于角色或基于功能安装
-
服务器选择: 从服务器池中选择服务器
-
服务器角色: Active Directory 域服务 和 DNS 服务器
-
下一步 …
-
将此服务器提升为域服务器(右上🚩 -黄色感叹号提示)
-
部署配置: 添加新林 域名(参考:office.com)
-
DNS 选项: 创建DNS委派
-
其他选项;路径;查看选项;安装;下一步…
添加域用户
- 从开始中找到 Active Directory 用户和计算机 打开
- 域名 -》 Users -〉 新建 -》 用户 -〉姓:(li)名:(feng)姓名(用户登录名): lifeng
- 密码:(大小写阿拉伯数字及位数限制 Myz17521)设置密码永不过期
- 选中创建的用户 -》 属性 -〉隶属于 -> 输入对象名来选择(Remote Desktop Users;Domain Admins )
加入域
- 获取域控服务器IP地址 (ipconfig/ifconfig)
- 打开域服务器 -》 打开网络中心 -〉更改适配器设置 -》 属性 -〉 Internet 协议版本4 (Tcp/IPv4) -> 使用下面的DNS服务器地址 -》 首选DNS服务器:(域控服务器IP)
Install App
应用安装
- 下载软件:(官网下载)
.NET Framework 4.5.2 Visual C++ Redistributable Packages for Visual Studio 2013 Visual C++ Redistributable for Visual Studio 2015 Microsoft.IdentityModel.Extention.dll AppServer Url: ed2k://|file|cn_office_online_server_last_updated_november_2017_x64_dvd_100181918.iso|770267136|0660AFCFE1AC9A62E749194874643E98|/ - 以管理员身份打开 Microsoft 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,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- 如果出现提示,请重新启动服务器
- 依次安装软件
1、 .Net.. 2、vcredist_x64.exe 3、vc_redist.x64.exe 4、MicrosoftIdentityExtensions-64.msi - 以管理员身份运行 PowerShell
- 导入 OfficeWebApps 模块
输入 Import-Module OfficeWebApps 回车 - 创建Office Online Server 场
New-OfficeWebAppsFarm -InternalURL "http://servername" -AllowHttp -EditingEnabled -OpenFromUrlEnabled-
参数地址
https://docs.microsoft.com/zh-cn/powershell/module/officewebapps/new-officewebappsfarm?view=officewebapps-ps
-
自定义参考
New-OfficeWebAppsFarm -InternalURL http://office-web.office.com -ExternalURL http://xxxx -AllowHttp -AllowHttps -EditingEnabled -OpenFromUrlEnabled -CacheSizeInGB 1 -ExcelAutomaticVolatileFunctionCacheLifeTime 1 -ExcelUnusedObjectAgeMax 1 -RemovePersonalInformationFromLogs
-
- 导入 OfficeWebApps 模块
- 验证是否成功
http://xxxx/ hosting/discovery
目录
Wopi Config
Wopi 配置
- 地址参考
- Excel
- 读
http://121.89.204.187/x/_layouts/xlviewerinternal.aspx?WOPISrc=http://121.89.204.187:8080/api/wopi/files/234.xlsx1234567895 - 写
http://121.89.204.187/x/_layouts/xlviewerinternal.aspx?edit=1&WOPISrc=http://121.89.204.187:8080/api/wopi/files/234.xlsx1234565352
- 读
- World
- 读
http://121.89.204.187/wv/wordviewerframe.aspx?WOPISrc=http://121.89.204.187:8080/api/wopi/files/777.docx1234567895- 写
http://121.89.204.187/we/WordEditorFrame.aspx?WOPISrc=http://121.89.204.187:8080/api/wopi/files/777.docx1234567894
- PowerPoint
- 读
http://121.89.204.187/p/PowerPointFrame.aspx?PowerPointView=ReadingView&WOPISrc=http://121.89.204.187:8080/api/wopi/files/212.pptx1234567855 - 写
http://121.89.204.187/p/PowerPointFrame.aspx?PowerPointView=EditView&New=1&WOPISrc=http://121.89.204.187:8080/api/wopi/files/212.pptx1234567895
- 读
测试代码 (参考链接:https://www.cnblogs.com/Yemilice/p/8276664.html)
https://github.com/dajangzhaomingyue/wopi - Excel
Mac 安装Microsoft Remote Desktop: mac 使用microsoft Remote Desktop 远端连接本地文件夹方法https://blog.youkuaiyun.com/harryptter/article/details/82881722
问题:
官方地址:
- 切换域账户登录 用户名@域名 用户密码
cpenny@test.com
Cpenny123
- 小程序文件校验配置
根据IIS服务器;配置到相应端口配置文件根目录
本文详细介绍了Office Online Server的部署步骤,包括服务器购买、域控配置、应用安装、Wopi配置等关键环节,并提供了相关软件下载及配置命令,是部署Office Online Server不可或缺的参考文档。
1万+

被折叠的 条评论
为什么被折叠?



