nginx 최적화 worker 프로 세 스 최대 파일 열기 workerrlimit_nofile 65535

899 단어 잘못
성능 최적화 - 최적화 워 커 프로 세 스 최대 파일 수 워 커rlimit_nofile 65535; 매개 변수 문법: workerrlimit_nofile 65535; 기본 설정: 위치 없 음: 주 탭 세그먼트, 주 프로필 nginx. conf 에 블록 이 설정 되 어 있 지 않 습 니 다.
host-192-168-1-15:/usr/local/nginx/conf # cat /usr/local/nginx/conf/nginx.conf
worker_processes  2;
error_log logs/error.log;
 
#  Nginx worker         
worker_rlimit_nofile 65535;    
 
user www www;
events {
    #               
    worker_connections  20480;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    #      
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
 
    #     
    server_tokens on;
}

좋은 웹페이지 즐겨찾기