Linux system installation and deployment Redis__linux

Source: Internet
Author: User
I. Installation of Redis

1, the officer network Download Redis compression package, Address: http://redis.io/download


2, through the Remote management tool, the compressed package is copied to the Linux server, performing decompression operations


3. Execute make to compile the files after Redis decompression


After compiling, you can see the uncompressed file redis-3.0.7 will have the corresponding SRC, conf and other folders, this and Windows installation of the extracted files, the majority of the installation package will have the corresponding class files, configuration files and some command files.


4, after the successful compilation, into the SRC folder, execute make install for Redis installation

5, the installation is complete, the interface is as follows
ii. deployment of Redis

After the installation is successful, Redis is deployed below

1. First, in order to facilitate management, the Redis file in the Conf configuration file and common commands to the unified file

A) Create bin and redis.conf files

Mkdir-p/usr/local/redis/bin
Mkdir-p/usr/local/redis/ect
B Execute Linux file Move command:

Mv/lamp/redis-3.0.7/redis.conf/usr/local/redis/etc
cd/lamp/redis-3.0.7/src
mv mkreleasdhdr.sh Redis-benchmark redis-check-aof redis-check-dump redis-cli redis-server/usr/local/redis/bin
2, execute Redis-server command, start Redis service

Note: The Redis-server-initiated Redis service is run directly in the foreground (the effect is shown above), that is, after the command is executed, if LUnix closes the current session, the Redis service closes. Normally, the start of the Redis service needs to start from the background and specify the startup configuration file.

3, background start Redis service

A) First edit the Conf file and change the Daemonize property to Yes (indicating that you want to run in the background)

CD etc/
Vi redis.conf

b Start the Redis service again and specify start service profile

Redis-server/usr/local/redis/etc/redis.conf


4, after the successful launch of the server, the implementation redis-cli start Redis client, view the port number.


Reprint address Please refer to: http://www.jb51.net/article/79096.htm

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.