在安装了来自 Google apt 仓库的 Cloud SDK 的 Ubuntu 系统上,您需要一个用于开发的本地 Datastore 模拟器。您应该怎么做?
选择一个答案
点击一个选项来检查您的答案。
正确答案: 通过 apt-get 安装 google-cloud-sdk-datastore-emulator 软件包。.
为什么这是答案
正确答案是“通过 apt-get 安装 google-cloud-sdk-datastore-emulator 软件包”。在通过 Google apt 仓库安装 Cloud SDK 的 Ubuntu 系统上,要获取 Datastore 模拟器,需要安装特定的模拟器软件包。apt-get install google-cloud-sdk-datastore-emulator 命令会从 apt 仓库安装此组件及其依赖项。 选项“使用 gcloud components install 安装 cloud-datastore-emulator 组件”是错误的,因为当 Cloud SDK 是通过 apt 仓库安装时,gcloud components install 命令通常不用于管理组件。apt 包管理器负责所有组件的安装和更新。 选项“使用 gcloud datastore export 导出 Datastore 数据”和“使用 gcloud datastore indexes create 创建 Datastore 索引”是用于管理 Datastore 数据和索引的命令,而不是安装模拟器。
通过考试 — 无需无休止地寻找答案
将本次考试的所有验证问题和解释集中在一处,节省数小时的准备时间。1,000+ 认证 · 20+ 语言 · 免费开始。
更快通过考试 → 无需银行卡