系统相关
首页 > 系统相关> > nginx并发数调优

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

标签:数调,并发,hard,worker,nofile,nginx,nproc,65535
来源: https://www.cnblogs.com/show58/p/15475300.html