Skip to content

Instantly share code, notes, and snippets.

@yustam
Last active November 24, 2023 13:23
  • Star 43 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Install Redis on Elastic Beanstalk
packages:
yum:
gcc-c++: []
make: []
sources:
/home/ec2-user: http://download.redis.io/releases/redis-2.8.4.tar.gz
commands:
redis_build:
command: make
cwd: /home/ec2-user/redis-2.8.4
redis_config_001:
command: sed -i -e "s/daemonize no/daemonize yes/" redis.conf
cwd: /home/ec2-user/redis-2.8.4
redis_config_002:
command: sed -i -e "s/# maxmemory <bytes>/maxmemory 500MB/" redis.conf
cwd: /home/ec2-user/redis-2.8.4
redis_config_003:
command: sed -i -e "s/# maxmemory-policy volatile-lru/maxmemory-policy allkeys-lru/" redis.conf
cwd: /home/ec2-user/redis-2.8.4
redis_server:
command: src/redis-server redis.conf
cwd: /home/ec2-user/redis-2.8.4
@ariel-frischer
Copy link

I'm getting the same error as @yingliangzhang, using single docker application

@lorenc-tomasz
Copy link

I have redis-2.8.4, how to update it on EB?

@juanccamachob94
Copy link

Thank you very much! works perfect to use in my application on 127.0.0.1

@nyousefzai
Copy link

nyousefzai commented Jul 25, 2023

2023

  yum:
    gcc-c++: [] 
    make: []
sources:
  /home/ec2-user: http://download.redis.io/releases/redis-6.2.6.tar.gz
commands:
  redis_build:
    command: make
    cwd: /home/ec2-user/redis-6.2.6
  redis_config_001:
    command: sed -i -e "s/daemonize no/daemonize yes/" redis.conf
    cwd: /home/ec2-user/redis-6.2.6
  redis_config_002:
    command: sed -i -e "s/# maxmemory <bytes>/maxmemory 500MB/" redis.conf
    cwd: /home/ec2-user/redis-6.2.6
  redis_config_003:
    command: sed -i -e "s/# maxmemory-policy volatile-lru/maxmemory-policy allkeys-lru/" redis.conf
    cwd: /home/ec2-user/redis-6.2.6
  redis_server:
    command: src/redis-server redis.conf
    cwd: /home/ec2-user/redis-6.2.6```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment