سؤال

I am trying to install varnish cache on AWS elastic beanstalk.I have used

yum install varnish

Its asks some input like

Is this ok [y/d/N]:

I want to hit "Y" by command. Is there any other way ?

Thanks

هل كانت مفيدة؟

المحلول 2

Use the -y option to yum, like this:

yum -y install varnish

This will automatically answer yes on any questions during the install.

نصائح أخرى

Actually, don't use yum directly on Elastic Beanstalk for anything but research and debugging, as the changes won't stick if Elastic Beanstalk decides to scale or rebuild the environment.

If you need a specific package on your instance, you probably want to install it through .ebextensions and the packages: directive, like so:

packages:
    yum:
        varnish: []

Good luck!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top