

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 複寫檔案共享
<a name="replatforming-file-shares"></a>

如果您的內部應用程式使用內部部署外部檔案共用，例如網路檔案系統 (NFS) 或伺服器訊息區塊 (SMB)，建議您將應用程式的程式碼變更為使用 Amazon Simple Storage Service (Amazon S3) 和 [Amazon CloudFront](https://docs.aws.amazon.com//AmazonCloudFront/latest/DeveloperGuide/Introduction.html)。不過，如果需要以區塊為基礎的存取，您可以使用 [Amazon Elastic File System (Amazon EFS) ](https://docs.aws.amazon.com//efs/latest/ug/whatisefs.html)或 [Amazon FSx for Lustre](https://docs.aws.amazon.com//fsx/latest/LustreGuide/what-is.html)。Amazon EFS 和 Amazon FSx 是需要共用檔案儲存的應用程式 AWS 選項。

對於 COTS 應用程式，我們建議將資料從內部部署檔案共用遷移到 Linux 上的 Amazon EFS 或 [Windows File Server 的 FSx](https://docs.aws.amazon.com//fsx/latest/WindowsGuide/what-is.html)。您應該以與現場部署檔案共用公開相同的方式，將區塊型檔案共用公開給應用程式。Amazon EFS 和 Amazon FSx 提供 NFS 和 SMB 型檔案共用，其功能與現場部署檔案共用相同。若要使用 Amazon EFS 或 Amazon FSx 進行檔案共用，只有 COTS 應用程式需要變更組態。