Nginx worker 进程最大打开文件数
来源:强扭的瓜不好吃     阅读:469
程序猿小白
发布于 2018-08-24 21:08
查看主页

cat /usr/local/nginx/conf/nginx.conf

worker_processes 2;

worker_cpu_affinity 01 10;

worker_rlimit_nofile 65535; # worker 进程最大打开文件数,能设置为优化后的 ulimit -HSn 的结果

user nginx nginx;

events {

worker_connections 1024;

}

http {

include mime.types;

default_type application/octet-stream;

sendfile on;

keepalive_timeout 65;

server_tokens off;

server {

listen 80;

server_name www.wosoquan.com;

location / {

root html/www;

index index.html index.htm;

}

}

}

免责声明:本文为用户发表,不代表网站立场,仅供参考,不构成引导等用途。 系统环境 服务器应用
相关推荐
Kali如何开启SSH
和老同学去钓鱼
android之进程和应用程序的生命周期
背完这10个经典面试答案,80%的面试都能喜提offer
VMware虚拟机中安装Ubuntu系统
首页
搜索
订单
购物车
我的