Installing Redis on Mac OS
Installing Redis is really simple on a Mac OS. Follow these steps and you are good to go:
- Download the package from Internet. For this, you can use the following command:
wget http://download.redis.io/releases/redis-2.8.3.tar.gz
- Untar the compressed
tar xzf redis-2.8.3.tar.gz
file. - This will create a folder; go to the folder by issuing the
cd redis-2.8.3
command. - Compile the file by issuing the
make
command. This will compile the binaries and create a folder structure, as shown in the following screenshot: - Type the
src/redis-server
command; this will start the server, as shown in the following screenshot: - Your Redis server is running and it is ready to accept the requests in port 6379. Open another terminal and go the same folder form where you installed Redis. Type the command
src/redis-client
; this will start the client shell, as shown in the following screenshot: