Breakthrough 1024 file descriptors

1) Use the command ulimit -a view the file descriptor limit, you can see the open files limit 1024, it is the file descriptor
Here Insert Picture Description
2) modify the configuration file by file descriptor limit

Sudo vim ect/security/limits.conf

Add the following two lines of code to the end, cancellation account for restart

  • soft nofile 8000 (this can be modified by ulimit -n)
  • Hard nofile 8000

3) Use ulimit -n upper open files can be modified

Published an original article · won praise 0 · Views 18

Guess you like

Origin blog.csdn.net/set_jmp/article/details/103983506