CentOS 7 Source Installation Redis

June 6, 2017 Redis's latest stable version is 3.2.9 1. Dependencies required to install and compile Update the software to the latest version yum update && yum upgrade Install compile dependencies yum install gcc make tcl 2. Download and unzip redis cd /usr/local wget http://download.redis.io/releases/redis-3.2.9.tar.gz tar zxv ...

Posted by sevenupcan on Mon, 24 Jun 2019 14:57:30 -0700

Hiredis realizes Redis pipeline

Pipelining (pipeline) allows Redis clients to send multiple commands to Redis at one time. After receiving these commands, Redis processes them sequentially, and then returns the processing result of the request to the client at one time. Pipelining can reduce the number of network communications between the client and Redis to improve the per ...

Posted by reneeshtk on Sun, 23 Jun 2019 12:09:44 -0700

HBase Coprocessor Details

1. Brief description When using HBase, if you have billions of rows or millions of columns of data, the ability to return a large amount of data in a query is subject to the bandwidth of the network, and even if the network conditions allow, the client's computing may not be able to meet the requirements.In this case, Coprocessors arise.It all ...

Posted by richard-elland on Sun, 23 Jun 2019 09:53:31 -0700

How to Control Concurrency by Redis Distributed Lock

Interpretation of redis command Say Redis Distributed locks are implemented by combining setNx commands with getset. Before we talk about them, let's first understand the meaning of setNx and getset. redis The official website explains this. Note: redis commands are atomic operations SETNX key value Set the value of the key to value if and ...

Posted by oldschool on Sat, 22 Jun 2019 14:37:48 -0700

Simple use of redis to send mail asynchronously

Are you also stuck in redis, knowing why it is, and how to use it? A simple example of using message queues to send messages asynchronously under yii Preparations for redis~~ First of all, you have to configure redis service. I have written some articles about redis service before. You can refer to them here. https://segmentfault.com/a/11... y ...

Posted by Archy on Tue, 18 Jun 2019 13:07:54 -0700

Docker's Six Initials - Stack

Link to the original text: http://www.itbus.tech/detail.html?id=8739 Preparing knowledge Install Docker (version minimum 1.13). Read through Docker's Six Initials - Swarm And complete the content introduced in it. Copy a copy of docker-compose.yml. Make sure your virtual machines are available. Use docker-machines to view, execute docker-ma ...

Posted by nashruddin on Mon, 17 Jun 2019 13:01:33 -0700

Data Structure in Web Advanced JavaScript

Complexity analysis Large O Complexity Representation Common ones are O(1), O(n), O(logn), O(n logn) In addition to the large O representation, time complexity can be described in the following cases Best case time complexity Worst Case Time Complexity Average case time complexity Allocation time complexity Code Execution Efficiency Analysis ...

Posted by fearfx on Sun, 16 Jun 2019 10:02:35 -0700

spring-boot-starter-redis Learning Notes

Personal notes are for reference only. 1. spring data redis recommends jedis, which is the java client of redis. <dependency> <groupId>org.springframework.boot</groupId><!-- Incidental introduction jedis Package --> <artifactId>spring-boot-starter-redis</artifactId> </dependency> ...

Posted by reinaldo on Fri, 14 Jun 2019 17:52:54 -0700

Process Threads Cooperate Those Things

I. Processes and Threads 1. Process Our computer applications are all processes, assuming that the computer we use is single-core, and the CPU can only execute one process at the same time. When the program is blocked by I/O, it is too wasteful for the CPU to wait with the program. The CPU will execute other programs. At this time, it involves ...

Posted by gazoo on Tue, 11 Jun 2019 15:43:48 -0700

Detailed steps for manual installation of redis-3.2.8 in CentOS 6.8

CentOS 6.8 installs with yum sometimes without a newer version, so install it manually. Here are the steps. Download the latest version Take 3.2.8 as an example. Attach the address: redis-3.2.8.tar.gz  http://download.redis.io/releases/redis-3.2.8.tar.gz 1. Download Redis 3.2.8 installation package wget -C http://dow ...

Posted by kobmat on Tue, 11 Jun 2019 11:10:11 -0700