Installing Redis under Linux

Source: Internet
Author: User

Redis in Linux installation is actually very simple, just before the installation of the use of Yum installation, but Yum installed when download speed is slow, and so half a day download do not want to get, today read the tutorial, direct make installation, installation method:

1, first on-line to find Redis and download, version does not matter, can be used on the line; Download finished upload to the Linux server;

2, Tar zxvf decompression Redis installation package (my installation package is redis.tar.gz, so with tar decompression);

3, after decompression into the decompression directory, and make compile;

4, after compiling will appear src directory, see the SRC directory inside the REDIS-CLI (Redis Terminal operation script), Redis-server (Start redis service script file);

5, in the/usr/local/directory to create a new redis/folder, and then redis-cli,redis-server,redis.conf (in the extracted Redis directory) three files copied to this directory;

6, start Redis-server, that is, enter the/usr/local/redis/directory, execute./redis-srver, this time can see the startup success of the page, but this is the front-end boot, when the press CTRL + C exit, Redis exited, So we need Redis background boot, this need to configure the redis.conf file, vi redis.conf, find about 17 lines to find Daemonize no this, the back of no change to Yes, so that Redis can be launched at the back end of the boot;

The start command takes the redis.conf file with the./redis-server redis.conf; Then you can pass Ps-a | grep Redis; See the Redis process;

This allows Redis to install OK, can login Redis to operate Redis, operation is very simple; the/REDIS-CLI command is ready to operate. The simple set name, Tom, is the data stored in name Tom, and the data is get name,

Installing Redis under Linux

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.