nginx

 

 nginx.conf

    worker_processes auto; // 自動模式,cpu的核數
    worker_connections 12500; //一個worker理數,真正處理數量等於worker_processes* worker_connections
    
    --with-http
    nginx-status
    
    location /nginx_status {
       stub_status on;
       access_log off;
       auth_basic "welcome"
       allow 192.168.88.1;
       deny 192.168.88.0/24;

    }
    
    access_log log/log-access.log main;
異步非堵塞

反向代理

    location / {
        proxy_pass http://xxxx;
    }

nginx 負載均衡

    使用默認rr輪詢算法
    upstream bbs {
        server 192.168.0.1;
        server 192.168.0.2
    }

nginx

    -with-http_ssl_module模塊 實現httpsnginx

相關文章
相關標籤/搜索