服务器一直都是用的lnmpa环境,之前流量大涨的时候出现apache假死才发现并发连接数不够用了
修改方法:
修改httpd-mpm.conf配置文件的prefork配置部分
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 1000 ##必须放在MaxClients上面 且值>=MaxCliens
MaxClients 1000
MaxRequestsPerChild 10000
查看当然Apache连接数: ps aux | grep httpd | wc -l
目前市面上的机械键盘都是针对windows系统设计的,所以一般接iMac或者MacBook的时候会有些按键无法对应,比如F1-F12。这里用一个小软件就可以搞定 – Karabiner-Elements官网地址:https://karabiner-…
请登录后发表评论
注册