Debian Wheezy Installing Redis 3.0

Source: Internet
Author: User
Tags redis version redis server



The Debian system comes with a redis version of 2.4,ubuntu with a version of 2.8, which is not the latest version of 3.0.2 and has to be compiled by hand. The process is as follows:


Install the Build Package
sudo apt-get install build-essential
Download source code


To the Redis home page Download the latest version of the source code, the current version is 3.0.2:http://download.redis.io/releases/redis-3.0.2.tar.gz


Compile


Fortunately, Redis is a pure C development, also do not rely on any special library, extracted directly after the compilation can.


tar xvf redis-3.0.2.tar.gzcd redis-3.0.2makemake test
Installation


The software under General Linux is used after compilingmake install, but usually the so-called installation simply copies files to the path directory, and does not register redis-server as a system service. Fortunately, we use Debian/ubuntu is a privilege! Redis provides a tool to help you register your system services after installation.


sudo make installcd utilssudo ./install_server.sh


According to the prompt to fill in the default port, log path, configuration file path, but did not let us fill in the name of the system service, the default name is redis_6379, I still like the service called Redis-server, so need to execute the following code:


sudo mv /etc/init.d/redis{_6379,-server}


This allowssudo service redis-server restartthe Redis server to be managed.


Test
$ redis-cli PINGPONG


Debian Wheezy Installing Redis 3.0


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.