CentOS7.3 study notes summary (xiv)

1, adjust the file descriptor

Definition of file descriptors: In order to efficiently manage the core index is already open files created for points to open files and perform all I / O system calls are operated by a file descriptor; descriptor is a simple the non-negative integer, to indicate that each open file process. When the program has just started, the first open file is 0 , the second is 1 , and so on.

Production environment, if the descriptor less, but more than access server, the server can not support, so we need to increase the file descriptor.

The default file descriptor 1024 .

image.png 

Temporarily modify the file descriptor, modify the command:

 image.png

Re-login system, and will restore 1024 , modified only for the current command-line shell valid.

Permanent modifications:

In the configuration file /etc/security/limits.conf add a single line:

* - nofile 65535

Reboot the system, you can permanently change the file descriptor to 65535.

2, change the character set

The character set is a variety of text and symbols in general.

Centos7.x default character set is zh_CN.UTF-8, command modification method: LANG = en_US.UTF-8 (in English), only to the current shell.

Permanent modifications:

Modify the configuration file: /etc/locale.conf

LANG="zh_CN.UTF-8"

Method of validating command: Source /etc/locale.conf or restart.

CentOS 6.x character set configuration files in / etc / syscconfig / i18n;


Guess you like

Origin blog.51cto.com/6300167/2484834