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