nginx配置指令之events

1. 工作进程的最大连接数

Syntax:worker_connections number;
Default:
worker_connections 512;
Context:events

Sets the maximum number of simultaneous connections that can be opened by a worker process.

It should be kept in mind that this number includes all connections (e.g. connections with proxied servers, among others), not only connections with clients. Another consideration is that the actual number of simultaneous connections cannot exceed the current limit on the maximum number of open files, which can be changed by worker_rlimit_nofile.

2. 工作进程是否开启同时接收多个请求

Syntax:multi_accept on | off;
Default:
multi_accept off;
Context:events

If multi_accept is disabled, a worker process will accept one new connection at a time. Otherwise, a worker process will accept all new connections at a time.

The directive is ignored if  kqueue connection processing method is used, because it reports the number of new connections waiting to be accepted.

 3. 工作进程处理aio请求的最大连接数

Syntax:worker_aio_requests number;
Default:
worker_aio_requests 32;
Context:events

This directive appeared in versions 1.1.4 and 1.0.7.

When using aio with the epoll connection processing method, sets the maximum number of outstanding asynchronous I/O operations for a single worker process.

4. 工作进程以什么用户与工作组的身份运行

Syntax:user user [group];
Default:
user nobody nobody;
Context:main

Defines user and group credentials used by worker processes. If group is omitted, a group whose name equals that of user is used.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值