google-cloud-sdk centOS install HOW TO

Cloud SDK is available in package format for installation on Red Hat Enterprise Linux 7 and CentOS 7 systems. This package contains the gcloudgcloud alphagcloud betagsutil, and bqcommands only. It does not include kubectl or the App Engine extensions required to deploy an application using gcloud commands, which can be installed separately.

Note: If you are using an instance on Google Compute Engine, Cloud SDK is installed by default.

  1. Update YUM with Cloud SDK repo information:
     
    sudo tee -a /etc/yum.repos.d/google-cloud-sdk.repo << EOM
    [google-cloud-sdk]
    name=Google Cloud SDK
    baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64
    enabled=1
    gpgcheck=1
    repo_gpgcheck=1
    gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
           https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
    EOM

    Important: The second line of gpgkey must be indented as shown.

  2. Install the Cloud SDK:
     
    yum install google-cloud-sdkNote: For additional yum options, such as disabling prompts or dry runs, refer to the yum man pages.
  3. Optionally, install any of these additional components:
    • google-cloud-sdk-app-engine-python
    • google-cloud-sdk-app-engine-python-extras
    • google-cloud-sdk-app-engine-java
    • google-cloud-sdk-app-engine-go
    • google-cloud-sdk-bigtable-emulator
    • google-cloud-sdk-datalab
    • google-cloud-sdk-datastore-emulator
    • google-cloud-sdk-cbt
    • google-cloud-sdk-cloud-build-local
    • google-cloud-sdk-pubsub-emulator
    • kubectl

    For example, the google-cloud-sdk-app-engine-java component can be installed as follows:

     
    yum install google-cloud-sdk-app-engine-java
  4. Run gcloud init to get started:
     
    gcloud init

Install the latest Google Cloud Client Libraries

You can download Cloud Client Libraries for supported languages.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值