Apache サーバーのシャットダウン スクリプトを使用してインスタンスを作成する
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Apache サーバーのシャットダウン スクリプトを使用してインスタンスを作成する
さらに詳しい情報
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This content demonstrates how to create a Google Compute Engine instance with a script to shut down the Apache server."],["The `shutdown-script` metadata field is used to specify the command `/etc/init.d/apache2 stop` to be executed during instance shutdown."],["Terraform is used to define and create the compute instance, including its name, machine type, zone, boot disk, and network interface."],["The example is written to execute a bash script during shutdown."]]],[]]