nginx并发数调优
nginx并发数实战操作
4.1、nginx操作,修改nginx.cnf
worker_processes 4;
worker_cpu_affinity 0001 0010 0100 1000;
worker_rlimit_nofile 65535;
4.2、centos7 操作系统
临时:ulimit –n 65535
永久:
在/etc/security/limits.conf最后增加:
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
参考: https://www.cnblogs.com/aaron-agu/p/11809880.html