Linux kernel adjustment and maintenance

Source: Internet
Author: User
Linux adjusts and maintains the kernel as an interface between the user program and system hardware. the kernel plays an important role in ensuring that RedHatEnterpriseLinux is widely used in physical and virtual hardware environments. Www.2cto.com: 1.cat/ etc/redhat-relea...
Linux adjusts and maintains the kernel as an interface between user programs and system hardware. the kernel plays an important role in ensuring that Red Hat Enterprise Linux is widely used in physical and virtual hardware environments. Www.2cto.com: 1. red Hat Enterprise Linux version installed in cat/etc/redhat-release 2. uname-r current kernel version 3. yum list installed kernel \ * kernel version installed 4. uname-m or arch: the processor architecture where the current operation is located. 5. when uname-a is used to view kernel information, the kernel sometimes sends a log message. These messages are recorded in the/var/log/messages file and marked as the kernel service. Kernel Module: module loading and uninstallation ● The core kernel image loaded during boot is located in/boot/vmlinuz-VERSION. ● multiple kernels can be installed, but only one is the currently running kernel. To change the kernel, you must reboot the system. ● Each kernel contains a set of dynamically loaded modules, which are compatible with the kernel and kept in/lib/modules/VERSION. ● Generally, modules are loaded and detached as needed, without user (or administrator) interaction. ● You can use lsmod to list the currently loaded modules. ● Sometimes, you may need to use modprobe MODULENAME to manually load the module. ● You can use modprobe-r MODULENAME to delete modules that are no longer in use. You can go to/lib/modules/2.6.32-71. run the modprobe-l command to view the kernel module information in the el6.x86 _ 64/kernel directory to list the loaded modules. example: # modprobe-l | grep nf_conntrack_ftp # modprobe nf_conntrack_ftp # lsmod | grep nf_conntrack_ftp # modprobe-r nf_conntrack_ftp kernel update: the rpm-Uvh kernel-name.rpm should theoretically be used to download the new kernel rpm package, but if U is used, it will cause the current running system to crash, so with rpm-ivh kernel-name.rpm new installation kernel in/boot will appear a new kernel in/boot/grub. in conf, default = 0 indicates that the new kernel is used. in this case, the new kernel must be restarted.

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.