在负载均衡的 Aws Beanstalk 上安装 ghostscript
Install ghostscript on load balanced Aws Beanstalk
我在当前服务器上使用 ghostscript。现在我要迁移到带有应用程序负载均衡器的 Aws beanstalk 服务器。
如何在 elastic beanstalk 上配置启动脚本,以便每当负载均衡器创建新实例时,都会自动安装 ghostscript。
您可以使用 .ebextensions 文件控制在 ElasticBeanstalk 实例中安装的内容。
当 Elastic Beanstalk 创建一个新的 EC2 实例时,它将 运行 文件中的所有命令以配置实例。
用于安装 Ghostscript.ebextensions 文件的示例
packages:
yum:
ghostscript: []
这将从 yum 存储库安装一个 ghostscript 版本。
如果您需要 never 版本的 ghostscript - 也可以在 ebextensions 文件中指定安装 shell 命令。例如,these commands will install Ghostscript 9.23
我在当前服务器上使用 ghostscript。现在我要迁移到带有应用程序负载均衡器的 Aws beanstalk 服务器。
如何在 elastic beanstalk 上配置启动脚本,以便每当负载均衡器创建新实例时,都会自动安装 ghostscript。
您可以使用 .ebextensions 文件控制在 ElasticBeanstalk 实例中安装的内容。
当 Elastic Beanstalk 创建一个新的 EC2 实例时,它将 运行 文件中的所有命令以配置实例。
用于安装 Ghostscript.ebextensions 文件的示例
packages:
yum:
ghostscript: []
这将从 yum 存储库安装一个 ghostscript 版本。
如果您需要 never 版本的 ghostscript - 也可以在 ebextensions 文件中指定安装 shell 命令。例如,these commands will install Ghostscript 9.23