启动脚本简介
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Linux
Windows
启动脚本是一个文件,其中包含在虚拟机 (VM) 实例启动时运行的命令。Compute Engine 支持在 Linux 虚拟机和 Windows 虚拟机上运行启动脚本。
下表包含介绍如何使用启动脚本的文档的链接。
启动脚本任务 |
最佳用途 |
过程链接 |
直接传递启动脚本 |
脚本大小上限:256 KB |
|
从本地文件传递启动脚本 |
脚本大小上限:256 KB |
|
从 Cloud Storage 传递启动脚本 |
大于 256 KB 的脚本 |
|
从启动脚本访问元数据 |
向使用相同脚本的每个虚拟机传递不同的值 |
|
重新运行启动脚本 |
在不重启虚拟机的情况下运行脚本 |
|
查看启动脚本的输出 |
监控脚本的进度 |
|
后续步骤
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-02-12。
[{
"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": "最后更新时间 (UTC):2024-02-12。",
"confidential": False
}