Redis is a data structure server. It is open-source, networked, in-memory, and stores keys with optional durability. Redis may be considered a participant in the “NoSQL” movement and is an attractive tool for developers of some kinds of applications. Redis is written in ANSI C and runs on POSIX systems such as Linux, Mac OS X and Solaris. It can be accessed by applications through its client API library. This article will explain you how to install and use redis.
System Preparation:
Before install the redis, we need to full the prerequisites of redis that will make easy for install it.
Start off by updating all of the apt-get packages:
sudo apt-get update
Now, we need download a compiler with build essential which will help us install Redis from source:
sudo apt-get
Lastly, we need to download tcl8.5
sudo apt-get install tcl8.5
Install Redis
Now, we have done all the prerequisite and dependencies on the server. Now we can ready for install the redis from source code.
Now, you can download the latest stable redis version 2.8.9 tarball from google code.
wget http://download.redis.io/releases/redis-2.8.9.tar.gz
Extract the downloaded .tar file, and switch into that directory.
tar xzf redis-2.8.9.tar.gz
cd redis-2.8.9
Now, you can Proceed to with the make command
make
Now, You need to Run the recommended make test
make test
Now, Finish up by running make install, which installs the program system-wide.
sudo make install
Redis program has been installed; It comes with a built in script that sets up Redis to run as a background daemon. To access the script move into the utils directory.
cd utils
From there, run the Ubuntu/Debian install script:
sudo ./install_server.sh
Once the script runs, you can choose the default options by pressing enter. Once the script completes, the redis-server will be running in the background.
You can start and stop redis with these commands (the number depends on the port you set during the installation. 6379 is the default port setting):
sudo service redis_6379 start
sudo service redis_6379 stop
Now, you can then access the redis database by typing the following command:
redis-cli
You now have Redis installed and running. The prompt will look like this:
redis 127.0.0.1:6379>
Now, To set Redis to automatically start at boot, run:
sudo update-rc.d redis_6379 defaults
Enjoy 🙂
Pingback: best price on generic viagra
Pingback: buy cialis usa
Pingback: ciprofloxacin hydrochloride
Pingback: generic albuterol inhaler for sale
Pingback: naltrexone brand name
Pingback: viagra suppliers
Pingback: tylenol online sales
Pingback: chloroquine 150 mg
Pingback: where to buy hydroxychloroquine
Pingback: pfizer viagra coupons
Pingback: cost of cialis
Pingback: price check 50mg viagra
Pingback: careprost from canada
Pingback: generic cialis