Linux system parameters adjustment

Source: Internet
Author: User
Linux system adjustment parameter modification system core parameter modification/etc/sysctl. conf file. add the following line to the end of the file. The line will take effect after the system restarts, or use/sbin/sysctl & amp; ndash; p to take effect. Kernel. sem25032000100128net. core. rme...
In Linux, adjust the parameters to modify the system core parameters and modify the/etc/sysctl. conf file. add the following lines to the file and add the lines to the file. the lines will take effect after the system restarts, or use/sbin/sysctl-p to take effect. Kernel. sem = 250 32000 100. net. core. rmem_default = 262144net. core. rmem_max = 262144net. core. wmem_default = 262144net. core. wmem_max = 262144kernel. core_uses_pid = 0 [description] www.2cto.com sem: indicates the set semaphore, which has four values (semmsl, semmns, semopm, semmni ). Net. core. rmem_default: the default buffer size. Net. core. rmem_max: maximum value of the received buffer. Net. core. wmem_default: the size of the buffer sent by default. Net. core. wmem_max: maximum sending buffer value. Kernel. core_uses_pid: indicates whether the generated core file name is suffixed with the process id. You can use/sbin/sysctl-a | grep shmmni to check that the parameters after restart meet the requirements. Modify user limits/etc/security/limits. conf # maximum number of files allowed to be opened *-nofile 65535 # maximum number of processes allowed to be created *-add the configuration in nproc 65535 pam for the configuration to take effect/etc/pam. d/login add a configuration line: session required pam_limits.so www.2cto.com disable the firewall through the setup graphical interface configuration, disable the firewall. Disable SELinux to modify the configuration file/etc/sysconfig/selinux, set SELINUX to disable, and restart the machine to make it take effect. Check that the IP configuration defaults to the 127.0.0.1 address corresponding to the host name. add a nic ip address and host name ing relationship 127.0.0.1 apptest localhost. localdomain localhost to delete the host name: 1 localhost6.localdomain6 localhost6 author Lotus 302

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.