Created
June 12, 2019 10:33
-
-
Save lesstif/08c635184c2844cafd4bd5eab1d89f4d to your computer and use it in GitHub Desktop.
install redis-cli on AWS AMI2 without redis server
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
#!/bin/bash | |
sudo yum install gcc -y | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xvzf redis-stable.tar.gz | |
cd redis-stable | |
make MALLOC=libc | |
### To compile against jemalloc, use this | |
# make MALLOC=jemalloc | |
sudo cp src/redis-cli /usr/local/bin/ | |
sudo chmod 755 /usr/local/bin/redis-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment