Created
October 22, 2017 16:28
-
-
Save channeng/b771cdcd10ba9e956c665e10815fd292 to your computer and use it in GitHub Desktop.
Script to build redis-server
This file contains hidden or 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 | |
| # This script downloads redis-server | |
| # if redis has not already been downloaded | |
| if [ ! -d redis-3.2.1/src ]; then | |
| wget http://download.redis.io/releases/redis-3.2.1.tar.gz | |
| tar xzf redis-3.2.1.tar.gz | |
| rm redis-3.2.1.tar.gz | |
| cd redis-3.2.1 | |
| make | |
| else | |
| cd redis-3.2.1 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment