-
-
Save yishenggudou/2921532 to your computer and use it in GitHub Desktop.
redis install on CentOS
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 | |
#Author: timger <[email protected]> | |
#weibo <http://t.sina.com/zhanghaibo> | |
#@yishenggudou http://twitter.com/yishenggudou | |
#1.安装(CentOS 6.2) | |
wget --output-document=redis-2.4.14.tar.gz https://code.google.com/p/redis/downloads/detail?name=redis-2.4.14.tar.gz&can=2&q= | |
tar zxf redis-2.4.14.tar.gz | |
cd redis-2.4.14 | |
make | |
make install | |
########### | |
mkdir -p /usr/local/bin | |
cp -pf redis-server /usr/local/bin | |
cp -pf redis-benchmark /usr/local/bin | |
cp -pf redis-cli /usr/local/bin | |
cp -pf redis-check-dump /usr/local/bin | |
cp -pf redis-check-aof /usr/local/bin | |
make[1]: Leaving directory `/home/eric/redis-2.4.14/src' | |
########## | |
sudo cp redis.conf /etc/redis.conf | |
sudo mkdir /var/redis | |
sudo chown nobody:nobody /var/redis | |
#### redisctl https://gist.github.com/2882960 | |
#### redis.conf https://gist.github.com/2882936 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment