This section continues at Take you to play interrupt mode key driver (detailed explanation) Add poll mechanismSo why do we need the poll mechanism. The previous test procedure is as follows:
while (1)
{
read(fd, &key_val, 1);
printf("key_val = 0x%x\n", key_val);
}
In the absence of the poll mechanism, most of the time the program is in the ...
Posted by DimeDropper on Fri, 12 Aug 2022 21:05:06 +0300
Linux command
1. Simple system command
# View ip address
ip a
ip addr
# ping network (test network connectivity)
ip Of the target machine ip
# View system time
date
# cancellation
logout
# Shut down
shutdown now
# restart
reboot
# Clear screen
clear
2.Linux file system
LinuxmeaningWindows/binStorage location of basic commands avai ...
Posted by turboprop on Sat, 30 Jul 2022 10:06:04 +0300
There is a Linux command repository on github, Click to visit
or click here make an inquiry
The following are the common commands that I have collected in my daily use
content
1. Unzip
7z
bz2
zip
2. Number of statistical files
3. After modifying the .bahsrc file, remember to use source to update the system variables
4. The bash file writt ...
Posted by daneth1712 on Wed, 25 May 2022 11:56:41 +0300
Source code compilation and installation httpd-2.4.43
abstract
Installation environment
Software download
Installation and testing
1) Download the source code of APR, APR util, PCRE and httpd
2) Unzip and install apr
3) Unzip and install APR util
4) Unzip and install pcre
5) Unzip and install httpd
6) Configuration files and c ...
Posted by dgreenhouse on Wed, 25 May 2022 04:18:37 +0300
1, Introduction
1. What is nginx?
l is a high-performance http server, reverse proxy server and e-mail (IMAP/POP3) proxy server developed in c language.
l is Igor Sysoev, a Russian programmer, and rambler, the second most visited in Russia Ru site development.
2. What are the advantages of nginx?
l lightweight
l when dealing with high concurren ...
Posted by guru2k9 on Tue, 24 May 2022 14:37:15 +0300
preface
It consists of kernel and Nginx module.
Nginx itself does little work. When it receives an HTTP request, it just maps the request to a location block by looking up the configuration file, and each instruction configured in the location will start different modules to complete the work. Therefore, the module can be regarded as the real ...
Posted by locell on Tue, 24 May 2022 05:11:51 +0300
We often encounter many difficult problems in our daily work. While solving the problems, some tools have played a considerable role. Write it down here. First, it can be used as a note to make us forget later and can be read quickly. Second, it is to share. We hope that the students who see this article can take out the tools they feel are ver ...
Posted by gte806e on Tue, 24 May 2022 02:09:42 +0300
1, Source installation
Step 1: unzip the nginx source package to the / opt directory, customize the configuration, and then compile and install
[root@server opt]# tar xzfv nginx-1.12.2.tar.gz
[root@server opt]# cd nginx-1.12.2/
[root@server nginx-1.12.2]#./configure \
--prefix=/usr/local/nginx \ <-----Specify the installation directory
- ...
Posted by mr. big on Tue, 24 May 2022 01:58:20 +0300
Experimental environment
Alibaba cloud server
Linux centos7
Applicable to all Linux distributions (CentOS, Ubuntu, etc.) and embedded Linux
principle
environment variable
The export command can display all current environment variables
[root@shuaifriend ~]# export
declare -x HISTCONTROL="ignoredups"
declare -x HISTSIZE="1000"
declare -x HOM ...
Posted by lucasrd on Tue, 24 May 2022 00:18:01 +0300