Introduction to the orphan process
The parent process ends before the child process, and the child process becomes an orphan process, and the parent process of the child process becomes the INIT process, called the INIT process adoption Orphan
Linux gateway information is stored in the routing table, and getting the gateway is actually the query for the routing table.
User space Get gateway addressThere are two methods, one is read from the/proc/net/route, this is the simplest, most
information interaction initiated by user space
Write your own system call
Linux currently provides more than 200 standard system calls, and allows us to add our own system calls to implement the information interaction with the kernel. Writing
Method/Step
First we connect to the Linux server
Use Iptables-l-N to view current firewall rules
You can use iptables-l-n--line-number to view the serial number of each rule chain, so that you can delete the specified rule.
For example, when we
There's still time today, and I've always wanted to take the time to write about what the Linux kernel principle is about, the focus is not in the code, but in the internal principles and mechanisms, so that everyone on the Linux kernel has a
The Linux namespace, abbreviated as NS, was introduced into the 2.4.19 kernel in 2002 and has grown to today for 15 years.
2010 years later, the domestic cloud computing burst, followed by the rise of the 2013 Docker, NS only as an indispensable
Linux projects written with makefile
a project must
Top layer Makefile Makefile.build subdirectory makefile
two compilation process
Start recursively into subdirectories from the top level, and start using GCC to compile when you go to the bottom
There are two ways to achieve this:
Method 1: Using the SVN merge
1 First SVN up, to ensure that updates to the latest version, such as 20;
2 then use the SVN log to view the history changes and find the version to restore, such as 10. If you want
1.vim code editing tools to solve the VI writing code, the direction key appears incompatible
sudo apt-get install vim
2.minicom serial Debugging tools, with embedded Development Board serial debugging
sudo apt-get install minicom
3.nfs Server
1, download ffmpeg.Search on the Internet or download the official website
2, decompressionTar command decompression
3, configuration./configure--enable-shared--prefix=/usr/local/ffmpegWhere:--enable-shared is allowed to compile a dynamic library,
When you encounter no flash plugin, download one to the official website:
http://get.adobe.com/cn/flashplayer/
I downloaded is: install_flash_player_11_linux.i386.tar.gz
OK, start the installation.
1. Find the correct directory
#whereis Firefox
In the server cluster network card binding is often used is also more practical, the following about the previous version of redhat7.0 (especially Red Hat 6.5-7.0) with the Bond method to bind the network card.
The following demo is done on the
1. Library:
is essentially a binary form of executable code.
There are two types of libraries under Linux: static libraries and dynamic libraries (shared libraries) 1.1 static libraries:
When the program is compiled, it is connected to the target
1, view the current logged-in user
[WILSH@LCL ~]$ Whatis w
(1)-show The Who are logged on and what they are doing
[WILSH@LCL ~]$ W
09:49:30 up 1 day, 17:19, 4 users, load average:0.00, 0.00, 0.00
USER TTY from login@ IDLE
[Root@linux var]# df-hl
file system capacity used available% mount point
/dev/hdb2 75G 75G 0 100%/
/dev/hdb1 99M 9.2M 85M 10%/boot
none 251M 0 251M 0%/dev/shm
What does that
Yesterday, the installation and configuration of the JDK, the installation of the JDK can be installed after the Tomcat and MySQL database, today first to say Tomcat installation and deployment.
Compared to the installation of JDK, Tomcat
Linux is a multiuser system that, once connected to a network, can serve multiple logged-in users at the same time. System administrators can keep abreast of the users in the system and what they are doing.
to view the actions of a userIf the system
Now there are multiple CPUs and multiple memory blocks on the machine. We used to look at the memory block as a chunk of memory, and all the CPU access messages to this shared memory were the same. This is the SMP model that was commonly used before.
Linux Basic Environment Settings
Here we have a few things to set up:
* Static IP: Why the need to set static IP (usually use Linux system is required to provide services, as the server needs a fixed IP address, is a static IP address. This will
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