简体   繁体   English

使用Zend启动x86_64 Amazon EC2实例?

[英]Launching a x86_64 Amazon EC2 instance with Zend?

I'm using Zend, a PHP library, to work with Amazon EC2. 我正在使用Zend,一个PHP库,与Amazon EC2一起使用。 I have created my own image (AMI), it's a x84_64 machine (ie not the default i386 architecture). 我创建了自己的图像(AMI),它是一台x84_64机器(即不是默认的i386架构)。 I want to launch it programmatically from PHP using Zend. 我想使用Zend从PHP以编程方式启动它。 Zend provides a 'run' method to run an AMI (cf. http://framework.zend.com/manual/en/zend.service.amazon.ec2.instance.html ). Zend提供运行AMI的“运行”方法(参见http://framework.zend.com/manual/en/zend.service.amazon.ec2.instance.html )。

However when I try to run it I get the following exception: 但是,当我尝试运行它时,我得到以下异常:

PHP Fatal error: Uncaught exception 'Zend_Service_Amazon_Ec2_Exception' with message 'The requested instance type's architecture (i386) does not match the architecture in the manifest for ami-faa48e8e (x86_64)' in /usr/local/Q/libs/zend/library/Zend/Service/Amazon/Ec2/Abstract.php:273 PHP致命错误:未捕获异常'Zend_Service_Amazon_Ec2_Exception',消息'请求的实例类型的体系结构(i386)与/ usr / local / Q / libs / zend / library /中ami-faa48e8e(x86_64)清单中的体系结构不匹配Zend公司/服务/亚马逊/ EC2 / Abstract.php:273

How do I run this AMI and tell Zend that it is a x86_64? 如何运行此AMI并告诉Zend它是x86_64? The documentation doesn't say anything on this. 文档中没有说明任何内容。

The Zend doc says you need to specify the instanceType. Zend doc说你需要指定instanceType。

For x86_64 AMIs, you needs to specify the instance type as large,xlarge, and the rest of large types. 对于x86_64 AMI,您需要将实例类型指定为large,xlarge和其他大型类型。 While i386 AMI needs m1.small or m1.medium only. 虽然i386 AMI只需要m1.small或m1.medium。

See: http://aws.amazon.com/ec2/instance-types/ 请参阅: http//aws.amazon.com/ec2/instance-types/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM