The support and implementation of Linux NIC driver for Ethtool
Speaking from a typical Ethernet controller
The network card works in the last two layers of OSI network system, physical layer and data link layer, the physical layer defines the
1 Principles of DNS
Introduction to 1.1 DNS
DNS (domain Name System) domain name systems, in the TCP/IP network has a very important position, can provide domain names and IP address resolution services.
1.2 Domain name space
DNS is a
Concurrent Linux under the high concurrency of the Nginx server, when the TCP time_wait socket number often reached 20,000 or 30,000, the server is easily towed to death. By modifying the Linux kernel parameters, you can reduce the number of
The following diagram is a typical UDP client/server communication process
Below according to the communication flow, we implement a UDP back-fire client/server
#include
#include
ssize_t Send (int sockfd, const void *buf, size_t len, int
One or five I/O models
1. Blocking I/O
The I/O model we mentioned earlier is blocking I/O, calling recv system calls, blocking waiting if there is no data, and copying the data from the kernel space (the socket buffer) to the user space (the BUF
The following is an example of the simplest client/server program to learn the socket API.
The function of the ECHOSER.C program is to read the characters from the client and then go back directly.
/**********************************************
1, Toolchain Introduction
Toolchain contains many parts: one of the main is GCC, which can be a native compilation tool or a cross compilation tool, GCC is supported by the Binuitls tool, and Binutils is a binary code maintenance tool, which is a
When compiling a test script file or application on a Linux operating system, it is often not satisfying to simply output the results to the screen, but rather to save the results, error messages, warning messages, and so on in a single file to
In Linux, using the Chkconfig command, to join the system services, the implementation of automatic software startup.
1. Self-Starter script template
The following is a script template, and the color section is a comment
#!/bin/sh
In the context of apache2 and TOMCAT5 integration, static files (such as shtml files) are typically stored in Apache directories, while dynamic files exist within Tomcat's jurisdiction because the two types of files are not separated during the
Do_execve
->open_exec->dentry_open
....
F->f_dentry = Dentry;
....
F->f_op = Fops_get (INODE->I_FOP);
....
Set up F->f_dentry and F->f_op, we look at the execution of the ext2 scenario, so F_op will be ext2_file_operations
Linux system porting
Environment construction
Cross-compile Toolchain: program code for compiling, linking, processing, and debugging cross-platform architectures. Steps to configure:
Extract to/usr/local/arm directory,
In linux, how does one automatically generate an array ranging from 1 to 100 in shell?
Before writing a shell script, you need to automatically create 1-texts without knowing how to create them. Baidu finally learned how to create it.
There are
0003_common commands for Linux and 0003_common commands for Linux
1. pwd: view the current directory
2. cd: Switch Directories
3. ls: view the files and folders in the current directory:
4. ls-l: list the files and details in the current directory.
Install Java JDK in Centos1. Introduction
DK is short for Java Development Kit. It is called Java Development Kit in Chinese and is provided by SUN. It provides a compiling and running environment for Java program development. All Java programs
Install VMware tools under CentOS in vmWare
Background: I recently learned about the linux operating system. Because it is inconvenient to switch the cursor into or out of vmware, I want to use vmware tools to solve the problem.
VMware
Install mailx in Centos
[Root @ localhost/] # mail-s "Message" xxxxx@163.com
By default, the system sends an email with the "root @ host name". If the email is directly considered as a spam, can you customize the email address to send the
Install PHP7 in Centos7Install PHP7 in Centos7
PHP compilation and installation is suitable for Centos6 and Centos7
Tags (separated by spaces): PHP
1. Simple InstallationUse yum1. Installepel-releaserpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86
Install JDK in CentOS 7
1. Uninstall the Local Machine with JDK
[Plain] view plaincopy
Rpm-qa | grepjdk
Explanation: rpm-qa lists all installed rpm packages.
2. Uninstall
You may have multiple results and unmount all the listed packages.
The
CentOS6.5 use yum to upgrade gcc
Because C ++ 11 is required, but gcc4.4.7 of CentOS is not supported, it is decided to upgrade gcc.The procedure is as follows:
# Back up mv/etc/yum. repos. d/devtools-2.repo/etc/yum. repos. d/devtools-2.repo.bak
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service