# Provides the configuration file context in which the directives that affect connection processing are specified. events { # 指定使用的连接处理方式,详情见:http://nginx.org/en/docs/events.html # use epoll; # 每个进程的最大并发连接数 worker_connections 1024; }
# 配置是否运行使用sendfile() sendfile on; # Enables or disables the use of the TCP_NOPUSH socket option on FreeBSD or the TCP_CORK socket option on Linux. #tcp_nopush on;