placed in the/etc/rc.d/init.d/directory. These RC startup scripts have a similar usage, and they generally accept start, stop, restart, status, and so on.The RC startup script in/etc/rc.d/rc5.d/is usually a link file starting with K or S, and will run with the start parameter for startup scripts starting with S. If it is found that the corresponding script also has a K-link, and is already in the running state (the file under/var/lock/subsys/as the f
SCRIPT files with the SCRIPT-NAME in the/etc/rc. d/init. d/directory.
In CentOS 5 and 6, the configuration of a single running-level service environment and the configuration of the service environment after the system operation-level switch are based on the above basic implementation.
Configuration process of a single running-level service environment:
1. Read the configuration file/etc/init/rc. cof.
machines. # My Linux FTP memory is a little small #
FreeIdle physical memory size
BuffThe Linux/Unix system is used to store the contents and permissions in the directory. My local machine occupies about 189 MB.
CacheCache is used directly to remember the files we opened and buffer the files. My local machine occupies more than 3400 MB (here is the cleverness of Linux/Unix, cache part of the idle physical
version number command directory"/vmlinuz-2.6.32/lib/modules/2.6.32/Redhat5:ramdisk-->initrdRedhat6:ramfs-->initramfsSingle core: Linux (LWP)Core: KO (Kernel object)So ()Microkernel: Windows, Solaris (threads)Chroot:chroot/path/to/temproot [COMMAND ...]Chroot/test/virrrot/bin/bashLdd/path/to/binary_file: Shows the shared libraries on which the binaries dependMBR (bootloader)--Kernel-INITRD (INITRAMFS)--(ROOTFS)--/sbin/init (/etc/inittab)/etc/inittab,/etc/init/*.confUpstartInit/etc/inittabId:run
*: To stop the service, k##*, priority, the smaller the number, the higher the priority to shut down, the dependent service is first closed, and then closed by the dependent.S*: To start the service, s##*, priority, the smaller the number, the more priority starts, the dependent service starts first, and the dependent service starts.The/ETC/RC.D/INIT.D directory also has a link directory for the/ETC/INIT.D directory, and the files are the same in both
knowing the time required to execute various processes in advance, it is a well-known process scheduling algorithm. The implementation process is as follows:1) set up multiple ready queues and assign different priorities to each queue. The higher the priority queue, the smaller the execution time slice required for each process. 2) When a new
Linux System Management -Process and scheduled task management a,the relationship between procedures and processes1. Procedure• Executable code and data saved on hard disk, CD-ROM and other media• Statically saved code2. Process• program code running in CPU and in memory• Dynamically executed code• Parent, child process
)} consumer: while(1) {p (full); P (mutex); Get fromBuffer//Remove ProductV (mutex); V (empty) conseume; //consumption}Reader Writer's questionDescription: A Data object (file, record) can be shared for multiple concurrent processes. Some of these processes only need to read the content, we call the "reader", and some processes are responsible for updating (reading and writing) the contents of which we call "writer".Rule: " readers " can read shared data objects at the same time ; " The writ
We have described the installation of Linux systems as examples of CentOS and the use of common Linux commands, and we will introduce the Linux system boot process in this section. What happens when the power is pressed and the moment we see the user interface? Hurry and find out.To boot the process process diagram for
language, before which the kernel code is written in sinks, completing some of the most basic initialization and environment setup work.
No matter what part of the analysis kernel involves start_kernel, because almost all modules are called when they are initialized
Init_task is a global variable, which is a manually created PCB. Process No. 0, which is the final idle
Supervisor is a C/s system that allows users to control some processes on Unix-like systems. It has the following characteristics:
1 simple
Supervisor through the INI format configuration file is easy to master, it provides a lot of configuration options for each process, so you can easily restart the process or automatic rotation log.
2 Unified
Supervisor pr
refreshing.3. optimized the code for terminating the process.
Supplementary description of date 2004.11.191. If you use this program to terminate the Windows LSASS. EXE process, you can see the one-minute countdown shutdown dialog box similar to the one-minute countdown when the shock wave occurs.2. On the other day, I discussed winlogon.exe with a web friend in the rising community.This program can be tes
pid=0 process we call the idle process belongs to the kernel.Things to do after Init starts:1. Read/etc/inittab to read the default level hypothesis: Read to the default level is 3/etc/init/*.conf# Boot level: (runlevel) # 0: Shutdown # 1: Single user mode # 2: Multiuser mode, NFS not supported # 3: Full multi-user mode, support for Text interface # 4: Reserved
Read Catalogue
Linux System Boot Process
Boot of the kernel
Run Init
Run level
System initialization
Set up terminal
User Login System
Switch between image mode and text mode
Linux shutdown
When we start the Linux operating sy
This article is to share the content of the PHP implementation of the system programming of the Guardian process, has a certain reference value, the need for friends can refer to
(a) process groups, sessions, control terminals, control processes and other concepts
process Groups : Each
Tags: boot from start simple shel mes smis GRE Crond block passwdIn the daily tedious operation and maintenance work, it is a very important part to carry on the security check of Linux server. Today, share how to check if the Linux system has been compromised?First, whether the intrusion check1) Check System log Check system error log, Count IP retries (last com
Operating System Process status
Next we will detail several statuses of processes in the operating system.Process status
Ready (Ready) Status
When a process has been allocated to all necessary resources except the CPU, it can be immediately executed as long as the CPU is obtained. The state of the process is called the
/rc.sysinit do are the following:
Set the hostname according to the settings in the configuration file
Print Text Welcome message
Activating SELinux and Udev
Mount Swap Devices
Detect root unity and re-mount in read-write mode
Setting the system clock
Set the value of the kernel parameter according to the/etc/sysctl.conf file
Activating LVM and RAID devices
Load additional device drivers
Cleanup operationsAfter the initializa
to 0
Empty represents the amount of free in buffer, and the default is the capacity of buffer n
Mutex, which provides a mutex operation for buffer, and 1 delegates can access buffer. 0 means no access to buffer, with an initial value of 1;
void producer () { while(true) { produce_item (); P (empty);//idle Capacity-1, no idle capacity, then wait, and enter the Block list
In today's society, computers are becoming more and more popular. We use computers, but do we know how computers work? An operating system is essential to a computer. However, the Linux operating system has developed very rapidly and is catching up with Microsoft. Here we will introduce the knowledge of Linux, so that you can learn how to use Linux. Today I will explain how to kill processes in Linux. I hop
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.