To create redis user, group and directory follow the steps below: Once you have created a redis service you might want to run following command so that even if your ubuntu server stops for any reason and restarted you will have redis server running.Ĭreate the Redis User, Group and Directories To start/stop or restart a redis server on your ubuntu machine run following commands only when you have setup the redis service mentioned in previous step: # and save the file once contents are pastedĮxecStart=/usr/local/bin/redis-server /etc/redis/nfĮxecStop=/usr/local/bin/redis-cli shutdown To create a new service on ubuntu follow the steps below: To run redis server constantly on ubuntu you have to first create a redis service. # search for "supervised" in /etc/redis/nf $ sudo cp /tmp/redis-stable/nf /etc/redis
To configure your redis server follow the steps below: To install redis server on your ubuntu server open the terminal window and run following commands: Redis store this data fro time specified so that you do not have to get the same data over and over from mysql database.įirst time you get the data from the database and store them on redis server and fetch this data from redis instead of getting them from mysql database. You should always cache data which does not change often. If you have a website which runs slowly and you want to speed up the loading time you use redis as a caching mechanism. Redis is an open source server used as a database and very popular as caching.
#Install redis server how to#
Install Redis Server on Ubuntu How to install and configure redis server on ubuntu?