Created
August 8, 2018 23:11
-
-
Save pindlebot/deea463a453e1f7dfa5e3cef95031a68 to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| yum -y update | |
| yum -y install gcc make | |
| cd /usr/local/src | |
| wget http://download.redis.io/releases/redis-5.0-rc4.tar.gz | |
| tar xzf redis-5.0-rc4.tar.gz | |
| cd redis-5.0-rc4 | |
| make distclean | |
| make | |
| yum install -y tcl | |
| make test | |
| mkdir -p /etc/redis /var/lib/redis /var/redis/6379 | |
| cp src/redis-server src/redis-cli /usr/local/bin | |
| cp redis.conf /etc/redis/6379.conf | |
| wget https://raw.githubusercontent.com/saxenap/install-redis-amazon-linux-centos/master/redis-server | |
| mv redis-server /etc/init.d | |
| chmod 755 /etc/init.d/redis-server | |
| chkconfig --add redis-server | |
| chkconfig --level 345 redis-server on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment