under the mac install and run redis

Part I: Installation Step 1: directly from the official website to download ** tar.gz package. And treated with tar -zxvf **. Tar.gz -C specified directory

Example command: tar -zxvf redis-5.0.5.tar.gz -C / usr / local / redis

Second part: the next directory redis-5.0.5:

Execute the command: make test and make install   

Start redis server: redis-server redis.conf  

Start reids client:

redis-cli -h localhost -p 6379localhost:6379

 

 

Note start redis redis server and client are executed in this directory /usr/local/redis/redis-5.0.5

 

The results shown below:

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/1540340840qls/p/10988625.html