起動スクリプトについて
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Linux
Windows
起動スクリプトは、仮想マシン(VM)インスタンスの起動時に実行されるコマンドを含むファイルです。Compute Engine では、Linux VM と Windows VM 上で起動スクリプトを実行するためのサポートが提供されています。
次の表に、起動スクリプトの使用方法に関するドキュメントへのリンクを示します。
起動スクリプトのタスク |
最適な用途 |
手順へのリンク |
起動スクリプトを直接渡す |
256 KB までのスクリプト |
|
ローカル ファイルから起動スクリプトを渡す |
256 KB までのスクリプト |
|
Cloud Storage から起動スクリプトを渡す |
256 KB を超えるスクリプト |
|
起動スクリプトからメタデータにアクセスする |
同じスクリプトを使用する VM ごとに異なる値を渡す |
|
起動スクリプトを再実行する |
VM を再起動せずにスクリプトを実行する |
|
起動スクリプトの出力を表示する |
スクリプトの進行状況をモニタリングする |
|
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-01 UTC。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]
{
"lastModified": "最終更新日 2024-08-01 UTC。",
"confidential": False
}