gpt4 book ai didi

go - 如何在 Google Cloud Platform 中保存计算引擎 VM 实例设置?

转载 作者:数据小太阳 更新时间:2023-10-29 03:20:49 26 4
gpt4 key购买 nike

我在 Google Cloud Platform 中创建了一个计算引擎 VM 实例。然后我使用从 https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz 下载的标准程序安装了 go。 .一切正常,我能够运行 go 应用程序。但是,当我重新打开它时关闭实例后,它说没有安装 go。消息如下。

-bash: go: 命令未找到

如何保存实例设置?

最佳答案

Creating, Deleting, and Deprecating Custom Images

You can create custom images of boot disks and use these images to create new instances. This is ideal for situations where you have created and modified a persistent boot disk to a certain state and need to save that state to create new instances.

我认为您还应该考虑使用 Docker 容器。

Pushing and pulling images

Container-optimized VM images

关于go - 如何在 Google Cloud Platform 中保存计算引擎 VM 实例设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54281564/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com