## redis Detailed installation in linux

Detailed redis mounted in linux


 1.redis Introduction

  (1) Redis is an acronym for Remote Dictionary Server (Remote Data Services) by the Italian antirez (Salvatore Sanfilippo) the development of a memory cache database.
  (2) The software is written in C language, its data model key-value.
  (3) It supports calue many types of storage, including the String (String), hash (hash), list (list), set (collection), Zset (ordered set).
  (4) In order to ensure the efficiency of the data is cached in memory, it can also periodically update the data written to disk or to modify the operation of writing additional log file.

2.redis features
  1) high-speed data read (in-Memory)
  2) reduce the burden on the server
  3) has a collection of computing functions (better than common databases and the same product category)
  4) support various data structures

3. Occasion its advantages
  1) Sort Set [application] rankings, taking top n operation. For example sina microblogging hot topic
  2) [List] N-date data or the latest data of a category
  3) calculator application
  4) [Set] sns (social network site) obtain mutual friend
  5) [Set] anti-hacking system (ip determination) and the like. For example: the wrong password several times, freeze

* 4.redis installation
  installation is mounted on a Centos7 before installation good redis ready to download from the official website link: https://redis.io/ , then you can upload files to the Linux system through xftp, I was put here I created a directory in the / user / local / soft.

  When these words ready to
  officially begin the installation
1) redis is a C language development, you need to first install redis official website to download the source code to compile, gcc compiler-dependent environment, if the environment does not need to install gcc gcc:
  command: yum install gcc- c ++
  If you are prompted to download and install, enter y.

2) now just put on my local linux system redis
  command: tar -zxvf file name
  after decompression is successful, enter the command ll extracted files will appear

3) Then enter redis extracted directory, compile redis (compiler, the c file is compiled o file)
  using the command: make.   The success of the last sentence will be displayed as shown below
Write pictures described here

Write pictures described here

4) install directory defined
  commands: make PREFIX = / usr / local / redis install, as FIG. 5) copy the file 5. Start   the current directory is the directory in the redis   command: ./ bin / redis-server   command: ./ bin / redis -cli   Note: to connect to the server needs to open a window   of the following is the standard connection redis start, the back-end mode   starts successfully
Write pictures described here
Write pictures described here

Write pictures described here



Write pictures described here

Write pictures described here


Write pictures described here

Write pictures described here

Write pictures described here

redis off
  1) query to the PID, kill -9 pid (power failure, abnormal closed generally do not, or cause loss of data).
  2) normally closed (normally closed, data storage): ./ bin / redis-cli shutdown

Guess you like

Origin www.cnblogs.com/liurui-bk517/p/11577730.html