It's time for a big holy lecture. I believe that the network is essential for every operator and developer to get in touch today, we're talking about the three virtual machines in VM virtual machines divide two LAN to realize the interconnection of different local area networks that is, the AC through the B host is communicating with each other instead of through the network. Here are the requirements and topicsRouting Configuration Practices:01. Network Information for the server needs to be co
Linux Process understanding and practice (5) discuss the daemon process1. daemon process and Its FeaturesThe most important feature of a daemon is that it runs in the background. At this point, the TSR of the resident memory program under DOS is similar. Second, the daemon must be isolated from the environment before running. These environments include unclosed file descriptors, control terminals, sessions
Practice of C Programming in Linux (1)
-Development Platform Construction
. GCC compiler
GCC is the most important development tool in Linux. It is the gnu c and C ++ compilers. Its basic usage is as follows:
Gcc [options] [filenames]
Options is the compilation option. GCC provides more than 100 compilation options, but only a few are frequently used. We will on
(Kern_info"finished\n");} Module_init (Print_init); Module_exit (print_exit);2. Compiling the moduleNext write Makefile.(Where the "Enter +tab" key is used during all to make)obj-m:=proclist.ocurrent_path:=$ (shell pwd) Linux_kernel_path:=/usr/src/linux-headers-3.13 . 0-genericall: -C $ (Linux_kernel_path) m=$ (current_path) Modulesclean: -C $ (Linux_kernel_path) m=$ (current_path) CleanThe first line: Write your own. C filename + ". O".The thi
WiFi function, we have a WiFi module, also need the corresponding driver, the first step needs to compile the module corresponding driver. (The general module supplier will provide the corresponding driver package, according to the instructions compiled)2 Load driver. (now our embedded Linux system can do some wireless operation, but we did nothing, equivalent to buy a WiFi module according to the instructions, loaded on the driver)3 Use HOSTAPD Open
Heartbeat introduction Heartbeat practice test havailability cluster (HA cluster for short. It is common.
Heartbeat introduction
Heartbeat test
Http://hi.baidu.com/%BB%C6%D0%C4%B2%A8/blog/item/d120a74da0e7fd38afc3ab09.html
Heartbeat principle
Cluster systems are mainly divided into High Availability clusters (HA clusters. Generally, HA clusters made by two nodes
set to GMT,-r 3. Get command Help mode: Use the command for commands in the shell,External command using man help manual, info command, etc.Program Readme, official site of the program, official documentation of the distribution, Internet searchMan is divided into man1 for user commands, man2 system calls, MAN3 for C libraries, MAN4 devices and special files, MAN5 profile format, man6 for games, Man7 Miscellaneous, MAN8 for system administrator commands4,CP, MV, RM file managementCp-f-v/etc/pas
The main purpose of the script is to practice capturing signals in a Linux bash script, by practicing the use of functions, and by terminating a running program, subsequent processing of files opened by the program, and so on!Scripting Features:Ping IP within a network segment, detect which IP is online, which IP is not onlinecommand to Practice:1, MktempUsage: #
The main purpose of the script is to practice capturing signals in a Linux bash script, by practicing the use of functions, and by terminating a running program, subsequent processing of files opened by the program, and so on!Scripting Features:Ping IP within a network segment, detect which IP is online, which IP is not onlinecommand to Practice:1, MktempUsage: #
The shell practice of Linux Learning
1. Describe the operation principle of shell program (can be attached with necessary graphic instructions);2, summarize all the knowledge points involved in shell programming (such as: variables, grammar, command status, etc., to take the picture of Yo);Summary article: http://pizimsn.blog.51cto.com/7002551/16976713, summarize the course of all the circular stateme
1,linux the distribution of each release, the relationship between, and the difference betweenThere are mainly the following distributionsDebian-based, mainly Debian, Ubuntu, mintDebian is a free distribution that is maintained by community organizations and is fully compliant with the GNU code. Using the Dpkg package management methodUbuntu is a Debian-based Linux system for desktop untable two releasesMin
Hello, everyone. I am your holy Grail.It's time for you to explain to everyone in the Holy Grail.Today, I'm taking you on a big project, you believe it or not.If you accidentally open this document, I hope you'll be able to read this post for two days, so please respect my labor and pretend to finish it. Crossing, thank you.First, you are welcome to Watch the operation stepsWe're officially starting.Topic:Routing Configuration Practices:The network information of the server needs to be configure
/vmlinuz-2.4.21-15 EL ro root=label=/
Initrd/initrd-2.4.21-15 el.img
Move the cursor to the second item, and then press E again, and the bottom line in the interface that appears is:
Grub Edit > Kernel/boot/vmlinuz-2.4.21-15.el ro root=label=/
Add a single before Ro and press ENTER to return to the Grub login selection interface and press the B key on the second item.
You can go directly to the Linux command line and then type passwd root to modi
Hands-on practice of Linux VLAN-playing with OpenStack (13) every five minutes)
This section describes how to implement and configure the following VLAN network in the experiment environment. Configure VLAN
Edit/etc/network/interfaces and configure eth0.10, brvlan10, eth0.20, and brvlan20.Vmdiff is used to demonstrate modifications to/etc/network/interfaces.
Restart the host machine, ifconfig Network In
First, the actual case (practice) contentIf you study Linux, want to find a portion of Linux related operations, one day you received a company to give the invitation, you came to the company interview, before the interview, OPS supervisor gave you some simple pen questions, the title is as follows:1, the creation of a 10G file system, the type of EXT4, requires
closed, read returns 0Validation Rule 3) int main () { int pipefd[2]; if (pipe (PIPEFD)! = 0) err_exit ("pipe error"); pid_t pid = fork (); if (PID = =-1) err_exit ("fork Error"); else if (PID = = 0) { close (pipefd[1]); Exit (exit_success); } Close (pipefd[1]); Sleep (2); Char buf[2]; if (read (pipefd[0], buf, sizeof (BUF)) = = 0) cout 4) The write operation generates a signal if the file descriptor corresponding to the read e
current system that are not owned by the master or group and have been visited in the last week;In addition, it is necessary to find all files of more than 20k and type ordinary files in/etc directory;find/-nouser-o-nogroup-atime-7find/etc-type f-size +20k8 , Create directory/test/data, let the normal user in a group have write permission to it, and all the files created belong to the group that the directory belongs to, in addition, each user can on
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.