0
0

More than 3 years have passed since last update.

放置してたGCPを復活させる(3)- gcloud CLIインストール - ※エラーも出ちゃったよ。

Last updated at Posted at 2020-08-29

GCP復活の作業履歴
放置してたGCPを復活させる(1)- プロジェクト作成 -
放置してたGCPを復活させる(2)- VMインスタンス作成 -
今回:放置してたGCPを復活させる(3)- gcloud CLIインストール -
放置してたGCPを復活させる(4)- PC(Windows10)からVMにssh接続 -
放置してたGCPを復活させる(5)- VMのIPを固定する -
放置してたGCPを復活させる(6)- nginxインストールとhttp設定 -
放置してたGCPを復活させる(終わり)- 独自ドメインの設定 -

今回はVMへのssh接続の前段として、gcloud CLIをインストールしていきます。

ダウンロード

以下からダウンロード
Windows 用のクイックスタート

迷わずgcloud CLIインストール⇒そしてエラー

2020-08-30_01h18_02.jpg
ガイダンスに従い、次へ次へ
2020-08-30_01h23_08.jpg
なんかエラー
To use the Google Cloud SDK, you must have Python installed and on your PATH.
As an alternative, you may also set the CLOUDSDK_PYTHON environment variable
to the location of your Python executable.

Pythonインストール・環境変数設定

うーん。PythonなしでCLOUDSDK_PYTHONの環境変数が無いのか。。。
よし。
https://www.python.org/downloads/
2020-08-30_01h27_55.jpg
最新版をインストールだ!
2020-08-30_01h29_28.jpg
環境変数設定
2020-08-30_01h39_10.jpg

gcloud CLIインストール再実行!!

2020-08-30_01h46_49.jpg
イエイ!!
2020-08-30_01h47_38.jpg

コマンドライン出現

なんか出てきた
2020-08-30_01h48_33.jpg
Y押すとgoogleの認証がブラウザで表示された。
認証処理を実施。
2020-08-30_01h51_32.jpg
。。。めんどくせ~からもういいや。×ボタン
git bashで確認
2020-08-30_01h57_27.jpg

なんか出たからこれでOKとしーとこ。

疲れた。おやすみなさい。

ありがとうございました。

次回
放置してたGCPを復活させる(4)- PC(Windows10)からVMにssh接続 -

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0