Open terminal and follow the steps :
1.mkdir redis && cd redis
2.curl -O http://download.redis.io/redis-stable.tar.gz
3.tar xzvf redis-stable.tar.gz
4.cd redis-stable
5.make
6. make test
7. redis-server
Note: When the server is started you will see the message below
Also, another way to test is via terminal
type command
redis-cli ping
you should see “PONG” message