Skip to content

Instantly share code, notes, and snippets.

@lesstif
Created June 12, 2019 10:33
Show Gist options
  • Save lesstif/08c635184c2844cafd4bd5eab1d89f4d to your computer and use it in GitHub Desktop.
Save lesstif/08c635184c2844cafd4bd5eab1d89f4d to your computer and use it in GitHub Desktop.
install redis-cli on AWS AMI2 without redis server
#!/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