Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
升級執行個體的 Redis 版本
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面說明如何升級 Memorystore for Redis 執行個體的 Redis 版本。如要查看可用版本清單,請參閱「支援的版本」。如要進一步瞭解升級作業期間的執行個體行為,請參閱「版本升級行為」。
升級執行個體版本
控制台
- 前往 Google Cloud 控制台的 Memorystore for Redis 頁面
Memorystore for Redis
- 找出要升級的執行個體,然後按一下該執行個體的「Instance ID」(執行個體 ID)。
- 在「設定」部分中,按一下「Redis 版本」旁的「升級」
- 在對話方塊中按一下「升級」按鈕,即可升級執行個體
gcloud
如要升級執行個體的 Redis 版本,請輸入下列指令,並將 variables 換成適當的值:
gcloud redis instances upgrade instance-id --redis-version=version --region=region
其中:
- instance-id:您的執行個體 ID
- version 是您要升級的版本:
- 可接受的值為:
redis_4_0、redis_5_0、redis_6_x、redis_7_0 和 redis_7_2
- region 是佈建執行個體的區域
例如:
gcloud redis instances upgrade myinstance --redis-version=redis_7_0 --region=us-central1
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-17 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-17 (世界標準時間)。"],[],[]]