Linux下redis安装与使用

tar -zxvf redis-4.0.11.tar.gz -C /usr/local/

cd /usr/local/redis-4.0.11/

make

make install

cd /usr/local/

mkdir -p redis

mkdir -p /usr/local/redis/bin

mkdir -p /usr/local/redis/conf

cp /usr/local/redis-4.0.11/redis.conf /usr/local/redis/conf/

cd /usr/local/redis-4.0.11/src/

cp mkreleasehdr.sh redis-benchmark redis-check-aof redis-cli redis-server 
/usr/local/redis/bin/

cd /usr/local/redis/bin/

cd /usr/local/redis/conf/

vim redis.conf

69 # bind 127.0.0.1

136 daemonize yes

500  requirepass 1234

./redis-cli -p 6379 -a 1234

./redis-cli -p 6379 -a 1234 shutdown

./redis-server /usr/local/redis/conf/redis.conf

DAEMON_ARGS=/etc/redis/redis.conf

DAEMON=/usr/bin/redis-server

69 # bind 127.0.0.1

396 requirepass 1234

vim /etc/redis/redis.conf

cd /usr/local/redis/bin/


hgetall device:SS27003D7945E53425B7A47302C552E24E

 

你可能感兴趣的:(Linux下redis安装与使用)