In linux, you can modify the kernel parameters during linux running without restarting the system. this is achieved through the/proc virtual file system. Www.2cto.com/proc/sysmemory enlarge the majority of the internal kernel, and the design can be modified at the same time in the system operation...
In linux, you can modify the kernel parameters during linux running without restarting the system. this is achieved through the/proc virtual file system. Www.2cto.com/proc/sys stores most kernel parameters and is designed to be modified while the system is running. Method 1: modify the kernel parameter file in/proc, for example, cat/proc/sys/kernel/core_pattern echo '% e. core. % p'>/proc/sys/kernel/core_pattern this modification actually only modifies the memory value. after reboot, the system will read/etc/sysctl. conf file to obtain kernel parameters (note: This is a virtual file, and all these files do not actually exist. To ensure the integrity of the modified data, do not open and edit the data in the editor. because the kernel may also modify the data while you modify the data, the saved value is not what you expected) method 2: modify/etc/sysctl. conf file kernel. core_pattern = % e. core. % p (note: the name of the parameter, corresponding to the file name under the/proc/sys/directory), save and exit, and execute the following command to make it take effect immediately sysctl-p
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.