标签:redis安装脚本
#/bin/bashmkdir -p /usr/local/redis/bin
mkdir -p /usr/local/redis/etc
cd /opt/soft/redis-2.8.19/
mv redis.conf /usr/local/redis/etc/
cd /opt/soft/redis-2.8.19/src
mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-dump redis-cli redis-server /usr/local/redis/bin
cat >/usr/local/redis/etc/redis.conf<<EOF
daemonize yes
port 6379
timeout 60
loglevel warning
databases 16
EOF
cd /usr/local/redis/bin
./redis-server /usr/local/redis/etc/redis.conf
ps -ef |grep redis
标签:redis安装脚本
原文地址:http://blog.51cto.com/guoshaoliang789/2121636