Linux stat function and stat command

Stat function and stat command In the linux file, [inode = index node] explains: to understand inode, you must understand disk and [directory item], inode is actually the intermediate material connecting [directory item] and disk. The big circle in the picture represents the hard disk, and the small circle in the picture represents a file stor ...

Posted by nesargha on Wed, 24 Apr 2019 14:21:34 -0700

04-HTTP Protocol and Static Web Server

1. HTTP Protocol Hypertext is the abbreviation of hypertext, which refers to the transcendence of text restrictions or hyperlinks, such as pictures, music, videos, hyperlinks and so on. Transferring data in HTTP protocol format is based on TCP transport protocol, and a connection needs to be established before sending data.   Role: It specifies ...

Posted by xconspirisist on Mon, 22 Apr 2019 13:18:35 -0700

Linux Network Programming-the Client of TCP Programming

Overview of TCP TCP (Transmission Control Protocol) is a connection-oriented, reliable, byte-stream-based transport layer communication protocol. TCP has the following characteristics: 1) Abstraction of Service Model of Telephone System 2) Every complete data transmission must go through the process of establishing connectio ...

Posted by netcoord99 on Mon, 22 Apr 2019 00:57:36 -0700

Jedis source code analysis: client design and implementation routine

Preface Jedis is the preferred client for java application to access Redis service. This paper analyses the source code of jedis client, and picks up the common routine of client design and implementation. Connection To access (Redis) services, you first need to establish a connection with the service, so the client library first needs to abstr ...

Posted by divadiva on Sun, 21 Apr 2019 17:33:33 -0700

Solution to a problem of abnormal crash of Windows 7 virtual machine (BSOD) in KVM environment

Let's start with the environment: Hardware 8 servers do hyper-integration architecture, software storage pool, Each server has 96G memory, two Intel (R) Xeon (R) CPU E5-26700 @ 2.60GHz, and 32 threads. Each server is a 1T SSD plus three 4T SATA, without raid card, two copies of data. The server integrates two 1G ports to aggregate ports and p ...

Posted by iceangel89 on Sun, 21 Apr 2019 15:51:34 -0700

Linux Network Programming--tcp Server

First, what are the requirements for being a TCP server? 1. Having a known address (bind(): the equivalent of knowing the number of mobile customer service clearly before we can call them; 2. Let the operating system know that it is a server, not a client (listen()): equivalent to mobile customer service, their main responsibility is to p ...

Posted by khaine on Sun, 21 Apr 2019 13:06:34 -0700

java Learning - NIO (III) Channel

Channel is the second major innovation of java.nio. They are neither extensions nor enhancements, but new and excellent Java I/O examples that provide direct connections to I/O services. Channel is used to efficiently transfer data between byte buffers and entities (usually a file or socket) on the other side of the channel. Introduction to ...

Posted by edsmith on Sat, 20 Apr 2019 17:33:33 -0700

android Source Analysis-Zygote

android is also a linux-based system, so all processes start with the init process (directly or indirectly from the init process focus). Zygote is a fertilized egg process and created by init process during system startup. Look at the startup script/system/core/rootdir/init.zygote64.rc: service zygote /system/bin/app_process64 -Xzygote /system/ ...

Posted by Inkeye on Sat, 20 Apr 2019 12:27:33 -0700

Linux 13 Network Server and Client ser,cli

1. Network programming 1.1 Basic Concepts Objective: Implementing inter-process communication Network: Connect multiple hosts to form a network. Internet: Connecting the network with the network constitutes the Internet. ip: Unique Indication of a Host in a Network Port: A process is uniquely marked on a host. 1.2 Network ...

Posted by dwardio on Sat, 20 Apr 2019 11:24:35 -0700

socketIo Builds Long Connections (2)

Today we're going to talk about wehsocket and node development long connection. In a real project, we may want to achieve a function that is not a simple chat function. Now we need to integrate it. Redis Rabbit MQ, etc. implements o2o's reminder function: First, integrate a redis: We create a chat folder in which we write a package.json ...

Posted by rj2kix on Fri, 19 Apr 2019 23:27:35 -0700