#user nobody;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
worker_processes auto;
worker_cpu_affinity auto;
#worker_processes 工作进程数
# worker_connections 单个工作进程可以允许同时建立外部连接的数量
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
# 轮询策略 到应用服务器的请求以round-robin/轮询的方式被分发
upstream nginx{
server 192.168.0.100:8080 weight=1 fail_timeout=