Last active
December 16, 2023 06:45
-
-
Save yustam/9086610 to your computer and use it in GitHub Desktop.
Install Redis on Elastic Beanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
Thank you very much! works perfect to use in my application on
127.0.0.1