安裝與升級 > 安裝 ThingWorx > ThingWorx 組態資源 > 配置自訂檔案存放庫的位置
配置自訂檔案存放庫的位置
在 ThingWorx 中,檔案存放庫目錄的預設位置會相對於 ThingworxStorage 位置。在預設情況下,存放庫位於 ThingworxStorage 資料夾中的下列位置:
Windows 環境:
<drive>:\\ThingworxStorage\repository,其中 <drive> 是 Tomcat 安裝所在的磁碟機
Linux 環境:/ThingworxStorage/repository
可將您使用 FileRepository 物件儲存的資訊配置為儲存在任何已定義的位置。這在高可用性 (HA) 環境中會有所幫助。ThingWorx 可與之前版本相容,所以如果未在 platform-settings.json 檔案中指定 FileRepositoryRoot (如下所示),則預設的存放庫位置在預設情況下會相對於 Thingworxstorage 路徑。
* 
ThingWorx 將不會自動掛載網路資料夾。您必須在 OS 上預先掛載這些網路資料夾,並且應在指定的組態中使用本機路徑 (如下所示)。
您必須將讀取/寫入權限授予指定的 FileRepositoryRoot 資料夾和外部資料夾。
配置位置
視您現有的環境而定,有些步驟可能不一定要採用。
1. 在 ThingWorx 安裝的根所在處,建立一個名為 ThingworxPlatform 的資料夾。
2. 將 platform-settings.json 檔案放置在 ThingworxPlatform 資料夾中。
3. 在 PlatformSettingsConfig 下方指定所欲位置的路徑。例如,"FileRepositoryRoot":"/Volumes/ShareFolder"
ThingWorx 將會在所配置的路徑下建立一個資料夾,這將是所有 FileRepository 物件的新位置。
* 
若在 FileRepositoryRoot 中定義的位置無法使用,ThingWorx 將會於啟動時中止。
這是否有幫助?