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
Simple test record and linuxelk test record for installing elk in Linux
Version:
1. elasticsearch-5.6.4.tar.gz
2. jdk-8u131-linux-x64.rpm
3.kibana-5.2.0-linux-x86_64.tar.gz
4.logstash-5.6.3.tar.gz
Next we need to have a virtual machine, and then enter the command yum install
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
Tips for passing the Linux test: the test time is detailed by the instructor-Linux general technology-Linux technology and application information. I have been watching the Olympics for the past few days. I have nothing to go out to play, but I am dizzy. However, I heard wel
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
Install, configure, and test the MySQL source code package in Linux (this test is feasible)
Write down this MySQL note, which will be useful in the future! RedHat Linux 6 uses the CentOS yum source to describe how to install and configure mysql source code. Here we will continue with the configuration of php and Apache
depth option to enable the Find command to do so. One reason for this is that when you use the Find command to back up the file system to tape, you want to back up all the files first, and then back up the files in the subdirectories.The instance 1:find command starts at the root of the file system and looks for a file named Con.file.Command:Find/-name "CON. FILE "-depth-printDescriptionIt will first match all the files and then go to the subdirectory to find12. Using the Mount option:You can u
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.