代码改变世界

Office Web Apps Server(1)

2013-09-21 22:17  左眼微笑右眼泪  阅读(605)  评论(0编辑  收藏  举报

     Office Web Apps Server runs on one or more servers and provides browser-based Office file viewing and editing to multiple hosts throughout your organization.

     In SharePoint2013,Office Web Apps Server is a seprated function,it is a indepedent service.And it does’t support install the Office web apps in the same host which has already installed the Sharepoint2013.

     There are some other necessary things you should do before you install the Office Web Apps.

     For Windows Server 2008 R2,you should install the following software:

    Then you can install the Office Web Apps,you can download it from here :http://www.microsoft.com/zh-cn/download/details.aspx?id=35489

    Install the software is very simple,you don’t have to anything except click “next”.

    When you have installed the Office Web Apps,then you will find there is a new service call “OfficeWebApps” in your service manager.You should start the service.

image

     And then you need to create a new Office Web Apps Server farm using the following commands:

Import-Module OfficeWebApps
New-OfficeWebAppsFarm –InternalURL http://servername –AllowHttp –EditingEnabled

–InternalURL is the name of the server that runs Office Web Apps Server, such as http://servername.

–AllowHttp parameter configures the farm to use HTTP or HTTPS

–EditingEnabled parameter enables editing in Office Web Apps when it is used together with SharePoint 2013.

     You can verify that the Office Web Apps Server farm was created successfully by using the command:

http://servername/hosting/discovery

     If Office Web Apps Server works as expected, you should see a Web app Open Platform Interface (WOPI)-discovery XML file in your web browser. The first few lines of that file should resemble the following example:

<?xml version="1.0" encoding="utf-8" ?> 
- <wopi-discovery>
- <net-zone name="internal-http">
- <app name="Excel" favIconUrl="http://servername/x/_layouts/images/FavIcon_Excel.ico" checkLicense="true">
<action name="view" ext="ods" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />
<action name="view" ext="xls" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />
<action name="view" ext="xlsb" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />
<action name="view" ext="xlsm" default="true" urlsrc="http://servername/x/_layouts/xlviewerinternal.aspx?<ui=UI_LLCC&><rs=DC_LLCC&>" />

     And then you need to go to the Sharepoint server,and run the powershell,you need create a binding between the Sharepoint server and you Office Web Apps server,using the following commands:

New-SPWOPIBinding -ServerName <WacServerName> –AllowHTTP
Set-SPWopiZone internal-http
-ServerName is the WacsSrverName which you have installed the Office Web Apps Server.(You can use hostname or IP address).
Then if this command excute sucessfully,it means you can view you office files online in you sharepoint site.Just have a try!
Reference:
SharePoint 2013之Office Web Apps Server
Content roadmap for Office Web Apps
Deploy Office Web Apps Server
Configure SharePoint 2013 to use Office Web Apps
Plan Office Web Apps Server