Installation of Redis

Source: Internet
Author: User

1.

Chinese Civil Service Network: http://www.redis.cn/download.html

British Civil Service Network: Http://www.redis.io/download

Inside the content of the same, is one is written in Chinese, one is written in English

Redis Command Reference official website: http://redisdoc.com/

Installation environment is SentOS-7

I am using redis-3.0.4, then TAR-ZXVF redis-3.0.4.tar.gz decompression, as follows:

2.

The Redis directory is as follows, where I copy the redis.conf to the new my_redis_conf directory,

Modify the redis.conf in the future is modified my_redis_conf directory, the original is not moved, so if the correct change is not afraid

3.

In the Redis directory, enter make for installation, and the GCC tool is required for installation (if you do not have GCC, you need to install GCC first).

If there is no error in the middle, it is installed.

The installed files are/usr/local/bin/by default:

Redis-server is a Redis service-enabled
REDIS-CLI is the one that opens the Redis client
REDIS-CHECK-AOF Check the aof file for errors, if there are non-compliant statements, will be automatically purged (equivalent to repairing the aof file)
Redis-check-dump Check the dump file for errors, if there are non-compliant statements, will be automatically cleared (equivalent to repairing the dump file)

4.

Now go to the backup directory, modify the redis.conf, the default port is 6379 (mysql default is 3306)

5. Start Redis below

Redis-server redis.conf turn on Redis service

Redis-cli-p 6379 Connect to Redis's 6379 port, turn on client

Shutdown Turn off Redis service

Exit Close Client

View the Redis process

For the redis.conf parameter configuration, you can refer to this comrade's:

Http://blog.sina.com.cn/s/blog_636415010101970j.html

Installation of Redis

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.