Linux study notes (5)-Linux system management

Source: Internet
Author: User
1. start the shutdown process and load the program 1. linux boot process a) load BIOS hardware information and obtain the code B of the first boot device) read the boot information of the boot loader for the MBR of the first boot device c) load the core of the core operating system... info & nbsp; | & nbs
1. start the shutdown process and load the program 1. linux boot process a) load BIOS hardware information and obtain the code B of the first boot device) read the boot information of the boot loader for the MBR of the first boot device c) load the core information of the core operating system, extract the core, and drive all hardware devices. d. run the init Program on the core and obtain the running information (/etc/inittab). e) init execution/etc/rc. d/rc. sysinit File (different versions, such as/etc/init. d/boot and/etc/init. d/rc) f) start the Core plug-in module (/etc/modprobe. conf) g) various batch files run by init. h) run by init/etc/rc. d/rc. local file I) execute the/bin/login program and wait for the user to log on to j) log on and start using Shell to control the host 2. user-defined boot program (/etc/rc. d/rc. local) 3. About the module configuration/etc/modprobe. during the conf startup process, the read service-related configuration files are recorded in the/etc/sysconfig directory and stored in/lib/modules/'uname-r'/kernel, /etc/modules/'uname-r'/modules. the dep file records the dependencies of the modules supported by the core. you can use the depmod command to create the file. Observation of core modules: loading and deletion of lsmod and modinfo core modules: modprobe (recommended for solving module dependencies first), insmod, and rmmod 4. bootstrap loader (for example, Grub) has two ways to load: directly specify and access the core file, load it into the main memory, and hand over control of the loader to the next loader, chain loader method 5. chroot may be used to solve the problem during the startup process. for example, a Linux system is started first, and then chroot is restored to another Linux system that cannot be started normally.
II. function library management 1. ldconfig and/etc/ld. so. conf to load the dynamic function library to the memory (high-speed cache, cache), which can improve the reading speed of the dynamic function library. The process of loading the dynamic function library to the cache is as follows: a) at/etc/ld. so. in conf, write "the directory where the dynamic function library is located to be read into the cache" B) use ldconfig to/etc/ld. so. conf data is read to high-speed cache c) at the same time in/etc/ld. so. record data in the cache file 2. ldd can be used to determine the dynamic function library of a executable binary file. ldd [-vd] [filename] 3. system daemon 1. based on the daemon startup and management methods, you can divide the daemon into independent startup daemon that can be started independently, and Super daemon that can be managed through a unified security mechanism. Superdeamon (Super daemon) is responsible for calling services through the unified Daemon (xinet. The Xinet startup script is written in/etc/init. d/xinet. d. The service setting items in the daemon are written in/etc/xinet. d. conf and/etc/xinet. d/* directory in any file. 2. the whole service can be started at startup in two places, one is started in the Daemon (/etc/rc. d/rc [0-6]. d/*) directory, the other is/etc/rc. d/rc. local. Use chkconfig to manage startup services. Syntax: chkconfig -- list chkconfig [-- add | -- del] [service_name] chkconfig -- level [0123456] [service_name] [on | off] 3. how can I add my own services to the management of chkconfig? Add the service to the init manageable script, that is,/etc/init. d. Author hopezhangbo

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.