Reference:
install Windows 2019 with desktop
add Feature .Net Framework 3.5 (指向光碟的D:\sources\sxs)
install MSSQL 2019,只需勾選 資料庫引擎服務
掛載sharepoint ISO檔(E:\source\sharepoint),執行setup安裝
連接資料庫的帳號(Ex: spadmin)必須有足夠權限(Ex: domain admin)
伺服器角色:自訂
指定連接埠:10000
如果要在sharepoint網頁看office檔案,需要在另一台VM安裝Office Online Server
(E:\source\office online server)
Office Online Server安裝
install Windows 2019 with desktop
add Feature .Net Framework 3.5 (指向光碟的D:\sources\sxs)
安裝步驟
https://learn.microsoft.com/zh-tw/officeonlineserver/deploy-office-online-server
新增Feature
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
安裝必要軟體
• .NET Framework 4.5.2
• 適用於 Visual Studio 2013 的 Visual C++ 可轉散發套件
• 適用於 Visual Studio 2015 的 Visual C++ 可轉散發套件
• Microsoft.IdentityModel.Extention.dll
掛載ISO檔(C:\tool),執行setup安裝
設定Office Online Server
以系統管理員權限開啟powershell
New-OfficeWebAppsFarm -InternalURL "http://officeonline01" –AllowHttp
確認建立成功
http://officeonline01/hosting/discovery
到sharepoint server設定
設定步驟
https://learn.microsoft.com/zh-tw/officeonlineserver/configure-office-online-server-for-sharepoint-server-2016/configure-office-online-server-for-sharepoint-server-2016
開啟Sharepoint2019管理命令介面
和Office Online Server串接
New-SPWOPIBinding -ServerName officeonline01.wht.local -AllowHTTP
確認串接狀況
Get-SPWOPIZone
設定為http連線
Set-SPWOPIZone -zone "internal-http"
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$Farm = Get-SPFarm
$Farm.Properties.Add("WopiLegacySoapSupport", "<URL>/x/_vti_bin/ExcelServiceInternal.asmx");
$Farm.Update();
如果要解除sharepoint和office online server串聯
Remove-SPWOPIBinding -All:$true
搜尋問題(找出一堆不相關的文件)解法
用這一篇的方法https://blog.csdn.net/liuzhenhe1988/article/details/109298898
先刪除Search Service Application,重建Search Application 1
New-SPWOPIBinding -ServerName officeonline01.wht.local -AllowHTTP
確認串接狀況
Get-SPWOPIZone
設定為http連線
Set-SPWOPIZone -zone "internal-http"
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.Update()
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$Farm = Get-SPFarm
$Farm.Properties.Add("WopiLegacySoapSupport", "<URL>/x/_vti_bin/ExcelServiceInternal.asmx");
$Farm.Update();
如果要解除sharepoint和office online server串聯
Remove-SPWOPIBinding -All:$true
搜尋問題(找出一堆不相關的文件)解法
用這一篇的方法https://blog.csdn.net/liuzhenhe1988/article/details/109298898
先刪除Search Service Application,重建Search Application 1
限制
sharepoint的搜尋只能在keyword後面加星號,Ex: wdt8730a用8730找不到,用*8730*也不行,只能用wdt8730a 或wdt8730*。
sharepoint的搜尋只能在keyword後面加星號,Ex: wdt8730a用8730找不到,用*8730*也不行,只能用wdt8730a 或wdt8730*。
沒有留言:
張貼留言