Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Redis-2.8.17 installation and configuration process some errors     - Java memory area (Programming)

- Ubuntu under shadowsocks configuration instructions (Linux)

- Ubuntu installed racing game Speed Dreams 2.1 (Linux)

- Use MD5 transform algorithm to prevent exhaustive decipher passwords (Linux)

- Nginx Installation and Configuration (Server)

- Android memory optimization of the optimal load Bitmap (Linux)

- MySQL 5.7.9 source compiler installation instructions (Database)

- Hadoop virtualization performance comparison and tuning experience (Server)

- To generate a certificate using OpenSSL under Linux (Server)

- Ubuntu installation 2.10.x version of Scala (Linux)

- Denyhosts prevent hackers using SSH scanning (Linux)

- Atlassian Linux Shell Scripting the confluence remote backup methods (Linux)

- C ++ sequence containers basics summary (Programming)

- How to query the role of Linux services (Linux)

- Sysdig: system troubleshooting tool (Linux)

- Fun music library in Linux using command line (Linux)

- Linux vi command list (Linux)

- Spring next ActiveMQ combat (Programming)

- Github inventory objects Algorithm (Linux)

- Linux System Getting Started tutorial: Ubuntu desktop using the command line to change the system proxy settings (Linux)

 
         
  Redis-2.8.17 installation and configuration process some errors
     
  Add Date : 2018-11-21      
         
       
         
  Redis installation process:

The first three steps should normally be no problem, the main problem is the time to make the implementation, there has been an exception.

Exceptions:
make [2]: cc: Command not found
Abnormal: not installed gcc
Solution: yum install gcc-c ++
 
Abnormal II:
zmalloc.h: 51: 31: error: jemalloc / jemalloc.h: No such file or directory
Abnormal: Some compilation dependencies or the original compile legacy problems
Solution: make distclean. Clean up, and then make.

After make successful, we need to make test. In the make test abnormal.
Exceptions:
could not execute "tclsh8.5": no such file or directory
Abnormal: not installed tcl
Solution: yum install -y tcl.

Set the memory allocation policy (optional, set according to the actual situation of the server)
/ Proc / sys / vm / overcommit_memory
Available Values: 0,1,2.
0, which means the kernel will check whether there is enough memory available for use by processes use; if you have enough free memory, memory for permission; otherwise, memory allocation fails, and the error back to the application process.
1, that allows the kernel to allocate all of the physical memory, regardless of the current memory status.
2, represents the kernel is allowed to allocate more than the sum of all the physical memory and swap space memory

A point worth noting is, redis in the dump data, will fork a child process, child process theoretically memory occupied and parent is the same, such as the memory of 8G parent, this time must also be assigned to 8G memory to the child, if the memory can not afford, often result in machine down redis server or IO load is too high, decrease efficiency. So here more optimal memory allocation strategy should be set to 1 (indicating the kernel is allowed to allocate all of the physical memory, regardless of the current memory status)

    vim / etc / sysconfig / iptables


    -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT

    service iptables restart

Modify redis / redis.conf, set as a background daemon process redis: daemonize yes

Many times after this configuration file is modified, mentioned redis problems may arise, so under normal circumstances are redis.conf profile error cause can be found on the Internet right or below is copied directly in, are also available.

redis.conf configuration:
    
daemonize yes
pidfile /usr/local/redis/var/redis.pid
port 6379
timeout 300
loglevel debug
logfile /usr/local/redis/var/redis.log
databases 16
save 900 1
save 300 10
save 60 10000
rdbcompression yes
dbfilename dump.rdb
dir / usr / local / redis / var /
appendonly no
appendfsync always
glueoutputbuf yes
shareobjects no
shareobjectspoolsize 1024


$ Redis-server redis.conf

[Root @ Architect redis-2.8.17] # ps -ef | grep redis
root 401 29222 0 18:06 pts / 3 00:00:00 grep redis
root 29258 1 0 16:23? 00:00:00 redis-server /etc/redis.conf

$ Redis-cli
redis> set foo jiu
OK
redis> get foo "jiu"

It is so complete.
     
         
       
         
  More:      
 
- Linux System Getting Started Learning: After starting in Ubuntu or Debian, enter the command line (Linux)
- Upgrade installation manual CentOS6.5 GCC4.8.2 (Linux)
- The Java ThreadLocal (Programming)
- How to install CentOS CentOS web page (Server)
- Git Experience Sharing - Using a remote repository (Linux)
- An Analysis of the C Algorithm for Calculating the Number of Days Between Date (Programming)
- Introduction and use of the Raspberry Pi (Linux)
- Oracle SQL statement to retrieve data paging table (Database)
- Linux system performance analysis and top command ps.pstree Comments (Linux)
- ElasticSearch - Basic Concepts (Server)
- Oracle to use full-text indexing (Database)
- Linux System Getting Started Tutorial: permission to permanently modify the USB device in Linux (Linux)
- ORA-00911 invalid character error Solution (Database)
- Some practical tips Linux (Linux)
- DNF Command Tutorial (Linux)
- How to use SHA256 checksum files download (Linux)
- QBit development of micro-services (Server)
- Configure the ASM process on Red Hat Linux 6.5 (Database)
- Oracle database on the hit rate of query summary (Database)
- MySQL database under Linux to achieve automatic backup scheduled backup day (Database)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.