Linux 安装reids
1、下载:
wget http://download.redis.io/releases/redis-3.0.0.tar.gz
2、解压:
tar -zvxf redis-3.0.0.tar.gz
3、安装:
1 cd /redis-3.0.0 2 make PREFIX=/usr/local/redis install
4、启动:
/usr/local/redis/bin/redis-server /usr/local/redis/etc/redis_6379.conf
5、全局配置:
1 # 在/usr/bin 目录下创建软链接 2 3 cd /usr/bin 4 ln -s /usr/local/redis/bin/redis-server redis-server 5 ln -s /usr/local/redis/bin/redis-cli redis-cli