Introduction and installation of Redis

Source: Internet
Author: User
Tags install redis redis server

Redis belongs to the Key-value database, which differs greatly from the traditional database, where Redis replaces complex SQL statements in a command, and is in the memory library nature, so it runs very fast. Memory data generates database files to ensure data persistence.

There are no concepts such as tables, fields, and primary keys for traditional databases in Redis. Store data in an intuitive, data-structured way. Redis supports the following types of data stores:

  1. String (Key-value)
  2. Hash (Key-filed-value)
  3. List (Key-value)
  4. Set (Key-value)
  5. Sort set (Key-score-value)

Redis is easy to install and can be downloaded and installed by performing the apt install redis-server.

After installation, Redis will run automatically and you can use Ps–ef | grep redis view Redis run status.

Use service Redis Stop/start to stop or start the Redis service.

You can also perform redis-server to start the Redis service.

Redis default port is 6379, and Redis-related configuration can be modified in/etc/redis/redis.conf to restart the Redis service to take effect.

The Config set command can also be used for hot modification.

Execution REDIS-CLI can enter the Redis client and execute the command operation database. You can take some parameters when executing REDIS-CLI, such as specifying a configuration file path, specifying the REDIS server IP port, and so on.

Introduction and 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.