The third day of getting started with NoSQL-outlining updates

Source: Internet
Author: User

First, the analysis Redis configuration file redis.conf

  (Linux configuration more than coding)

  1. Where is it?

  Since I downloaded the installation in Root's home directory, the default installation location is:

  Conf is here:

  According to experience, the factory conf never change

  We copied the Conf and we copied it to/root/myredis.

 Here centOS7 default is to open the location of the last left

The configuration file compares detailed introductory information, such as:

    Units units-Case insensitive:

   Includes contains--similar to sub-module development under the configuration file divided into Spring-shiro,spring-context module introduced

    General Universal

    Factory default setting is no--set to Yes to enable it to run in the background as a daemon

    Default process pipeline ID file--pid


Can not rely on PID to identify the virus process, PID only for a period of time to help you identify the same process

    Port--Default 6379

   tcp-backlog511--Default Value 511

Tcp-backlog
Setting the TCP Backlog,backlog is actually a connection queue, the backlog queue sum = Three handshake queue not completed + three handshake queue completed.
In high-concurrency environments you need a high backlog value to avoid slow client connectivity issues. Note that the Linux kernel will reduce this value to the/proc/sys/net/core/somaxconn value, so you need to confirm the increase of somaxconn and tcp_max_syn_backlog two values
To achieve the desired effect.

    Binding:--beginner stage, will be tied to the machine 127.0.0.1 can

  timeout--expiration time, you can set the number of seconds after the session is not connected, the default 0 is not closed

   View network traffic Status

    Log levels--similar levels to log4j

    Log file name:--Can be empty

   Log Switch--default syslog-enabled No, default is off, if open, will start with Redis

   Configuration of the database:--default 16 libraries 0-15

    Snapshotting Snapshot

    Replication replication

    Security safety

    Startup is found without entering the password, it is considered to be installed on Linux, is a relatively safe place, so it is not necessary to enter the password:

access password viewing, setup, and cancellation

  Enter Password verification: (auth+ password Authentication)

  Cancel Password:

 Limits restrictions

The third day of getting started with NoSQL-outlining updates

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.