简体   繁体   English

如何在AWS beantalk上安装APC缓存?

[英]how to install APC cache on aws beanstalk?

I want to install Alternative PHP Cache(APC) on AWS Elastic Beanstalk. 我想在AWS Elastic Beanstalk上安装替代PHP缓存(APC)。 Please share me any idea or tutorial for this. 请分享给我任何想法或教程。

Thanks in advance 提前致谢

(I am not specifically aware about the APC and PHP) (我对APC和PHP并不特别了解)

But, anything doable via commandline can be configured in Elastic Beanstalk. 但是,可以在Elastic Beanstalk中配置通过命令行执行的所有操作。 Each time an instance is lanunched, these are executed and so you can practically do any kind of configuration. 每次启动实例时,它们都会执行,因此您几乎可以进行任何类型的配置。 This adds a lot to the power of Beanstalk. 这大大增加了Beanstalk的功能。

Read more here: Customizing and Configuring AWS Elastic Beanstalk Environments 在此处了解更多信息: 自定义和配置AWS Elastic Beanstalk环境

There is an article here regarding this: 这里有一篇关于此的文章:

http://qpleple.com/install-apc-on-elastic-beanstalk/ http://qpleple.com/install-apc-on-elastic-beanstalk/

Whether it works or not is not something I have finished verifying as of yet. 到目前为止,我还没有完成对它是否起作用的验证。

However using the .ebextensions paradigm seems to be the correct way of going about it: 但是,使用.ebextensions范例似乎是解决该问题的正确方法:

# .ebextensions/myapp.config
packages:
  yum:
    php55-pecl-apc: []

EDIT: 编辑:

Anyone coming from google - the new package version is php71-pecl-apcu 来自Google的所有人-新的软件包版本是php71-pecl-apcu

# .ebextensions/myapp.config
packages:
  yum:
    php71-pecl-apcu: []

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

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