In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux kernel parameter adjustment methods, the article is very detailed, has a certain reference value, interested friends must read it!
Ulimit Settin
Ulimit-n needs to be adjusted to 100000 or more. Execute ulimit-n 100000 from the command line to modify it. If you cannot modify it, you need to set / etc/security/limits.conf and join.
* soft nofile 262140
* hard nofile 262140
Root soft nofile 262140
Root hard nofile 262140
* soft core unlimited
* hard core unlimited
Root soft core unlimited
Root hard core unlimited
Note: after modifying the limits.conf file, you need to restart the system to take effect.
Kernel Settin
There are three ways for Linux operating system to modify kernel parameters:
Modify / etc/sysctl.conf file, add configuration option, format is key = value, call sysctl-p to load new configuration after modification and save
Use the sysctl command to temporarily modify, such as: sysctl-w net.ipv4.tcp_mem= "379008 505344 758016"
Directly modify the files in the / proc/sys/ directory, such as echo "379008 505344 758016" > / proc/sys/net/ipv4/tcp_mem
The first method takes effect automatically after the operating system is rebooted, and the second and third methods fail after reboot.
These are all the contents of the article "what are the methods of adjusting Linux kernel parameters?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.