Office online server deployment and simple operations, officeonline

Source: Internet
Author: User
Tags microsoft downloads

Office online server deployment and simple operations, officeonline

The office online server is an upgraded version of the Office Web Apps Server. The installation environment must beWindows Server 2012 R2

Reference address: https://technet.microsoft.com/zh-cn/library/jj219455 (v = office.16). aspx

 

Note:

  • Do not install any other Server applications on servers running Office Online Server. Includes Exchange Server, SharePoint Server, Skype for Business Server, and SQL Server. If the Server is insufficient, you can run the Office Online Server on one of these servers.

  • Do not install any services or roles that depend on the Web Server (IIS) role on ports 80, 443, or 809, Because Office Online Server regularly deletes Web applications on these ports.

  • Do not install any version of Office. If you have already installed the Office Online Server, you must uninstall it before installing it.

  • Do not install the Office Online Server on the domain controller. It does not run on servers that contain Active Directory domain services (ad ds.

 

All in all: it is best to deploy the office online server on a clean server, and the server must be in the domain

 

Installation steps:

1. Install windows server 2012 R2, install all updates, and restart the server.

2. Open the Windows PowerShell prompt as an administrator and run the command example to install the required roles and services. After the installation is complete, restart the computer.

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

 

3.

Install the following software: before installation, you must constantly check for updates and install updates, go to Control Panel> Programs and functions> View installed updates and find Microsoft Windows Update (KB2919355 )".

Otherwise, installing Visual C ++ Redistributable for Visual Studio 2015 reports an error (refer to the https://support.microsoft.com/zh-cn/help/3025135/visual-studio-2015-fixed-bugs-and-known-issues) and restarts your computer as prompted.

  • . NET Framework 4.5.2

  • Visual C ++ Redistributable Packages for Visual Studio 2013

  • Visual C ++ Redistributable for Visual Studio 2015

  • Microsoft. IdentityModel. Extention. dll

4.Install Office Online Server

 

5. Install the Language Pack for Office Web Apps Server. Microsoft downloads the package from this address, for example, wacserverlanguagepack.exe. (The downloaded package is english. No other link is found. The package is to be modified)

 

6. Configure the AD domain for the server, which can be set on the computer properties page-computer name, domain, and workgroup settings. Add an AD domain account and grant the server administrator permission.

 

7. log on to the Server with this account, open the Windows PowerShell prompt as an administrator, and use the New-officewebsitefarm command to create a New Office Online Server farm containing a Server, as shown in the following example.

New-OfficeWebAppsFarm -InternalURL "http://servername" -ExternalUrl "https://server.external.contoso.com" -AllowHttp -EditingEnabled
  • -InternalURL: Internal access address, generally http: // machine name. AD domain control address

  • -AllowHttp: whether http access is allowed

  • -External access address of ExternalUrl, usually the IP address of the server.
  • -EditingEnabled enables editing in Office Online Server (if it is used with SharePoint Server 2016 ). Skype for Business Server 2015 or Exchange Server does not use this parameter because these hosts do not support editing.

For more parameter usage, see https://msdn.microsoft.com/zh-cn/magazine/jj219436.aspx

This article only deploy an HTTP Single Server Office Online Server farm. For more information about multiple servers and https, see https://technet.microsoft.com/zh-cn/library/jj219455 (v = office.16). aspx

If no error is reported, visit the address http: // machine name. AD domain control address/hosting/discovery. You can see the wopi-discovery documentation.

 

The second part uses WOPI to preview and edit documents online (Editing supports docx, xlsx, and pptx. doc, xls, and ppt are not supported.)

1. Code address: https://github.com/marx-yu/WopiHost, using the code of the main branch

 

2. Because I deploy and deploy the office web app server using a virtual machine, you need to modify the address in the CobaltServer. cs file so that the virtual machine can access this address. If the port number is occupied, you must modify it.

 public CobaltServer(string docsPath, int port = 8082)        {            m_docsPath = docsPath;            m_port = port;        }        public void Start()        {            m_listener = new HttpListener();            m_listener.Prefixes.Add(String.Format("http://10.204.13.78:{0}/wopi/", m_port));            m_listener.Start();            m_listener.BeginGetContext(ProcessRequest, m_listener);            Console.WriteLine(@"WopiServer Started");        }

 

3. the root directory of the file is in the Program. cs file, which can be modified by yourself.

 

4.run the program. You can use the wordfile test.docx at the address. Note: test.docx must be in the root directory 4. For more url addresses, see wopi-discovery.

Http: // machine name. AD Domain Controller address/wv/wordviewerframe. aspx? WOPISrc = http: // 10.204.13.78: 8081/wopi/files/test.docx & access_token = 06l % 20hXK6zWTUi

 

(Note: Unlike office web app server, Microsoft is no longer needed. cobaltCore. dll, And the docx file editing is the same as the xlsx file. You do not need to click the Save button, that is, it will be saved online after editing. After testing, it is also feasible to convert the source code to webapi for calling)

 


5. online viewing file size is best limited to 10 mb, you can modify their own officewebsitefarm parameters: https://technet.microsoft.com/zh-cn/library/jj219442 (v = office.16). aspx

 

6. The log of the office online server is recorded in% Programdata % \ Microsoft \ OfficeWebApps \ Data \ Logs \ ULS \. You need to hide the folder and administrator permissions on the server to view the error information and locate the error.

 

6. wopi documents:

Https://wopi.readthedocs.io/en/latest/

 

Https://github.com/Microsoft/Office-Online-Test-Tools-and-Documentation

 

Https://technet.microsoft.com/zh-cn/library/jj219437 (v = office.16). aspx

 

Http://www.cnblogs.com/love007/p/6274910.html

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.