1. #!/bin/bash
    2. #往/etc/security/limits.conf 文件的末尾追加两行配置参数,修改最大打开文件数量为 65536
    3. cat >> /etc/security/limits.conf <<EOF
    4. * soft nofile 65536
    5. * hard nofile 65536
    6. EOF