===============================================================================================
Basic Environment stand-alone installation
===============================================================================================
1. Installing GCC
Yum Install GCC
=============================================================================================================== ==============================================================
Package Arch Version Repository Size
=============================================================================================================== ==============================================================
Installing:
GCC x86_64 4.4.7-16.el6 Base ten M
Installing for dependencies:
CLOOG-PPL x86_64 0.15.7-1.2.el6 Base (k)
CPP x86_64 4.4.7-16.EL6 Base 3.7 M
MPFR x86_64 2.4.1-6.el6 Base 157 k
PPL x86_64 0.10.2-11.el6 Base 1.3 M
Updating for dependencies:
LIBGCC x86_64 4.4.7-16.el6 Base 103 k
Libgomp x86_64 4.4.7-16.el6 Base 134 k
?
To manually install the GCC steps:
Updating:libgcc-4.4.7-16.el6.x86_64 1/9
Installing:ppl-0.10.2-11.el6.x86_64 2/9
Installing:cloog-ppl-0.15.7-1.2.el6.x86_64 3/9
Installing:mpfr-2.4.1-6.el6.x86_64 4/9
Installing:cpp-4.4.7-16.el6.x86_64 5/9
Updating:libgomp-4.4.7-16.el6.x86_64 6/9
Installing:gcc-4.4.7-16.el6.x86_64 7/9
2. Make
???? Make if error: Zmalloc.h:50:31:error:jemalloc/jemalloc.h:no such file or directory
???? Make MALLOC=LIBC--described in the Redis Readme file
?
3. Make install
?
4. Tuning
4.1 Modifying/etc/sysctl.conf Vm.overcommit_memory=1
???? The Vm.overcommit_memory parameter has three possible configurations:
???????? 0 means to check if there is enough memory available, if yes, to allow allocations, and if memory is insufficient, reject the request and return an error to the application.
???????? 1 means that requests that exceed physical memory plus swap memory are allowed to be allocated based on values defined by Vm.overcommit_ratio. The Vm.overcommit_ratio parameter is a percentage, plus the amount of memory that determines how much RAM can be allocated over an excessive amount. For example, the Vm.overcommit_ratio value is 50 and the memory is 1GB, which means that memory allocation requests up to 1.5GB are allowed before memory allocation requests fail, plus swap memory.
???????? 2 indicates that the kernel always returns TRUE.
4.2 Modifying/proc/sys/net/core/somaxconn
???? Cat/proc/sys/net/core/somaxconn--default 128
???? Echo 511 > Cat/proc/sys/net/core/somaxconn
???? Add disable command to/etc/rc.local
???? Defines the length of the maximum listening queue for each port in the system, which is a global parameter. Limits the size of the listening queue to receive new TCP connections. The default of 128 is too small for a high-load Web service environment that often handles new connections. Most environments this value is recommended to increase to 1024 or more. The service process itself limits the size of the listening queue (for example, SendMail (8) or Apache), and often has the option to set the queue size in their configuration file. A large listening queue can also help prevent denial-of-service DoS attacks.
4.3 Disabling THP
echo Never >/sys/kernel/mm/transparent_hugepage/enabled
Cat/sys/kernel/mm/transparent_hugepage/enabled
Add disable command to/etc/rc.local
???? Set Maximum file Open quantity
Ulimit-a
???????? Ulimit-n 10032--This command can be placed in/etc/rc.local
???????? Ultimate Modification
???????????? Vi/etc/security/limits.conf
???????????? * Soft Nofile 65536
???????????? * Hard Nofile 65536
Redis stand-alone environment installation