Reproduced Redis Background Boot

Source: Internet
Author: User
Tags redis server

from:http://www.art-coder.com/2011/12/01/how-to-run-redis-server-as-daemon/

How to run Redis server as daemon

So I think, which those who would read this article probably know, what's is Redis. For the those who don ' t I can say shortly, that's a software, that's used for storing some maped data (key = value ) for faster usage. This software could help developers to make their applications by storing some primitive data like for example translation s on multi-language webpage or other similar information. In this article I'll shortly explain how do your Redis server run as daemon, since making startup file for the UNIX isn't an option.

First obviously you need to get it and unpack. It's all explained on official Redis webpage, but for those who want to stay in one place I'll explain it here.

Sort of installation

Download, extract and compile Redis with:
$ wget http://redis.googlecode.com/files/redis-2.4.4.tar.gz
$ tar xzf redis-2.4.4.tar.gz
$ cd redis-2.4.4
$ make

So, when everything was ready for starting server comes, the part with creating a daemon from this.
Make sure is in Redis directory and do the following:
vim redis.conf

And after the just change ' no ' to ' yes ' on line with daemonize option
# By default Redis does not run as a daemon. Use ‘yes‘ if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize yes

After you saved file with the just start server:
$ src/redis-server

This is it. Now your can look it up by typing and you'll see ps aux it as a deamon process there.

Reproduced Redis Background Boot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.