Redis has five data types

catalogue introduction 1, String data type 1,SET/GET/APPEND/STRLEN 2,INCR/DECR/INCRBY/DECRBY 3,GETSET 4,SETEX 5,SETNX 6,MSET/MGET/MSETNX 2, List data type 1,LPUSH/LPUSHX/ LRANGE 2,LPOP/LLEN 3,LREM/LSET/LINDEX/LTRIM 4,LINSERT 5,RPUSH/ RPUSHX/RPOP/RPOPLPUSH 3, Hash data type (hash type) 1,HSET/HGET/HDEL/HEXISTS/HLEN/HSETNX 2,HINC ...

Posted by maest on Wed, 10 Nov 2021 00:56:44 -0800

Windows 10 Linux development environment building (WSL)

1, WSL initialization Search Linux from the Windows reference store and download Ubuntu (optional 18.04 or 20.04). After downloading, click Install from the start menu and you will be asked to initialize your user name and password. 2, Create root user Subsequent operations require root permission. Ubuntu does not have root user by default and ...

Posted by Yippee on Tue, 09 Nov 2021 22:48:12 -0800

Linux blocking and non blocking IO experiments

Blocking and non blocking IO are two common device access modes in Linux driver development. Blocking and non blocking must be considered when writing drivers. In this chapter, we will learn about blocking and non blocking IO, how to deal with blocking and non blocking in the driver, and how to use wait queue and poll mechanism in the drive ...

Posted by lou28 on Tue, 09 Nov 2021 12:47:41 -0800

linux firewall and iptables

introduce What is a firewall A firewall is a combination of hardware and software components located between the internal and external networks.`The primary purpose is to protect the security of data flow between the internal and external networks`,When an external network accesses an internal network, the packets sent must go through the ...

Posted by Peredy on Tue, 09 Nov 2021 09:50:07 -0800

Self study linux driver from getting started to giving up Makefile

        gcc compiles a single file. makefile can compile a single file or multiple files according to programming rules. Refer to the videos on the network and the posts of great God, and sort out the following that you will use. makefile basic syntax: 1, Syntax format:         Goal: dependency &nbs ...

Posted by paul088 on Mon, 08 Nov 2021 23:43:00 -0800

Debugging method after opening MMU when Linux kernel starts

Recently, I was debugging the Linux kernel and tracking the startup process. It is found that before turning on mmu, the physical address can be used to output debugging information by losing data to the serial port Fifo. However, once the code runs to enable mmu, in the assembly stage, mmu only maps the physical memory and does not map io, so ...

Posted by canabatz on Mon, 08 Nov 2021 22:58:01 -0800

Easy to use vim configuration and explanation,. vimrc makes office more efficient

Many Xiaobai should start using vim just like me. They don't know how to configure it. They have been plagued by problems such as not highlighting SV syntax and boring background color. The following is the summary and explanation of the boss. An efficient vim configuration is of great help to the office! . vimrc configuration Powerful vim ...

Posted by Zippyaus on Mon, 08 Nov 2021 22:35:16 -0800

[shared memory] performance comparison of mmap, shm and MappedByteBuffer

Introduction Due to the need to write a java program and an existing c program (AFL) for local communication in the near future, the efficiency of sending data using udp is not very high. In addition, AFL itself uses shm to share the physical memory to obtain the execution path information of the subroutine to be tested, while the shared memor ...

Posted by rugzo on Mon, 08 Nov 2021 22:26:33 -0800

2022ubuntu perfectly builds ASOP source code compilation environment (domestic image) 1 -- Download Image

Several core addresses https://mirrors.tuna.tsinghua.edu.cn/help/git-repo/ Tsinghua Git Repo image help https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/ Tsinghua Android image help Address of some relevant information My environment is brand new ubuntu18 Download overall steps 1. Install repo 2. Install the global repo configuration file ...

Posted by robvan75 on Mon, 08 Nov 2021 20:51:00 -0800

Installing and deploying RocketMQ for Linux

introduction One of Alibaba's core distributed technologies is RocketMq. As a distributed message middleware, it has been baptized by Taobao's double 11 and far exceeds activeMq in function and performance 1. You should know that RocketMQ native supports distributed, while ActiveMQ native has a single point. 2.RocketMQ can guarantee s ...

Posted by Cronikeys on Mon, 08 Nov 2021 19:29:20 -0800