我要评分
获取效率
正确性
完整性
易理解

Extending File Descriptors

Purpose

Set the maximum number of files that can be opened to 102400 for Nginx. If only a maximum of 1024 files can be opened by the software during the test, the server performance will be affected.

Procedure

  1. Add the following content to the /etc/security/limits.conf file:
    *   soft     nofile      102400 
    *   hard     nofile      102400
    • The asterisk (*) indicates all users.
    • hard indicates a strict setting. The preset value cannot be exceeded.
    • soft indicates an alarm setting. The preset value can be exceeded, but an alarm is generated if it is exceeded.
  2. Save the file and restart the server.