Translate

2010年2月12日金曜日

Telling the Tools Where They Live: AmazonVPC Getting Started Guide p19

Telling the Tools Where They Live
どこにコマンドラインツールが存在するかの問い合わせについて

The command line tools depend on an environment variable (EC2_HOME) to locate supporting libraries. You need to set this environment variable before you can use the tools. You must set the variable to the path of the directory where you unzipped the command line tools. The directory itself is named ec2-api-tools-A.B-nnnn (A, B and n are version/release numbers), and contains sub-directories named bin and lib.

コマンドラインツールはサポートするライブラリのありかを特定するために環境変数(EC2_HOME)を使います。ツールを使う前にこの環境変数を設定する必要があります。コマンドラインツールを解凍した時に、変数の値としてパスを設定しなくてはなりません。
ディレクトリ名はec2-api-tools-A.B-nnnn (A, B や n はバージョン/リリースナンバ)で、そのディレクトリにはbinやlibを含んだサブディレクトリが存在します。


On Linux and UNIX, you can set this environment variable as follows.
Linux/UNIX上では以下のような設定を行います。

$ export EC2_HOME=

On Windows the syntax is slightly different.
Windows上では文法が異なります。

C:\> set EC2_HOME=


In addition, we recommend you add the tools' bin directory to your system PATH so you don't have to specify the path to the tools each time you invoke them. The rest of this guide assumes you've done this.

付け加えて、システム環境変数 PATHへツールのbinディレクトリを加えることをお勧めします。そうすれば、フルパスを書かないでそれらを実行することができます。以降、PATHへ設定している状態として説明を続けます。

On Linux and UNIX, you can update your PATH as follows.
Linux/UNIX環境では以下のようにPATHを設定します。

$ export PATH=$PATH:$EC2_HOME/bin


On Windows the syntax is slightly different.
Windows上では文法が異なっています。

C:\> set PATH=%PATH%;%EC2_HOME%\bin

Note
The Windows environment variables are reset when you close the command window. You might want to set them permanently.
Windows環境変数はコマンドウィンドウを閉じるとリセットされます。一時的ではなく、永続的設定をお勧めします。

0 件のコメント:

既存アプリケーションをK8s上でコンテナ化して動かす場合の設計注意事項メモ

既存アプリをK8sなどのコンテナにして動かすには、どこを注意すればいいか..ちょっと調べたときの注意事項をメモにした。   1. The Twelve Factors (日本語訳からの転記) コードベース   バージョン管理されている1つのコードベースと複数のデプロイ 依存関係 ...