美文网首页
linux工具

linux工具

作者: 阿坤不想学编程 | 来源:发表于2016-07-06 23:52 被阅读0次

    ab 压测工具

    ab

    修改文件描述符限制数

    直接用ulimit -n 65535,但重启后消失,新shell也没有修改。如何修改打开文件数限制并重启后生效呢?
    1.修改limits.conf
    sudo vi /etc/security/limits.conf
    在文件尾部增加
    * hard nofile 65535
    * soft nofile 65535
    保存文件
    注:*表示所有用户名。

    相关文章

      网友评论

          本文标题:linux工具

          本文链接:https://www.haomeiwen.com/subject/jppkjttx.html