Redis installation setup


Redis installation setup


Download and extract redis tar 


1. wget http://download.redis.io/releases/redis-2.8.19.tar.gz
tar xzf redis-2.8.19.tar.gz
2. Install redis
cd redis-2.8.19
make
3. After that you should run the recommended command:
make test
4. Lastly run make install, which installs the program system-wide.
sudo make install

5. To set redis as a service

Run these commands
cd utils
Need to run the install_server.sh file
sudo ./install_server.sh
here can set which port redis server is to run , Default port is 6379
6. To start and stop redis service
sudo service redis_6379 start
sudo service redis_6379 stop
7. Run this command to set Redis to automatically start when you boot up
sudo update-rc.d redis_6379 defaults
8. Test redis server
To access the Redis database by typing the following command:
redis-cli
now have Redis installed and running. The prompt will look like this:
redis 127.0.0.1:6379>
To give in put as ping it responses as pong
>> ping
>>PONG

Comments

Popular posts from this blog

Proxy setting in java

Using logstash to import csv json files into elasticsearch

Kibana 4 Installation and Run as a service in ubuntu