安装Redis

1、下载安装包到software

curl -O http://download.redis.io/releases/redis-5.0.5.tar.gz

2、解压到~/application

tar -zxvf redis-5.0.5.tar.gz -C ~/application

3、编译Redis

cd ~/application/redis-5.0.5
make
make install

4、配置redis

bind 0.0.0.0
daemonize yes
logfile "~/application/tmp/redis/redis.log"

5、Redis启动

src/redis-server
src/redis-cli

6、Redis停止

src/redis-cli shutdown

7、配置Redis快捷启停命令

sudo vim ~/.bash_profile
# Setting for Redis Command
alias redis-server=~/application/redis-5.0.5/src/redis-server
alias redis-cli=~/application/redis-5.0.5/src/redis-cli
source ~/.bash_profile

你可能感兴趣的:(环境搭建,大数据)