Bang hộiTiền mặt: 0 Xu Trò chơiHộp quà giáng sinhThứ Bảy, 22:25:16 - 28/09/2024
Chia sẻ kiến thức sử dụng VPS (máy chủ ảo) - Server (máy chủ riêng)

Các điều hành viên: Mod, SMod, Admin

Tối ưu hóa NGINX - Optimized nginx.conf configuration

Tối ưu hóa NGINX - Optimized nginx.conf configuration

#1 » Gửi bài gửi bởi nghiammo1992 » 01/01/2021 14:14 » @521254

worker_processes 6;
worker_rlimit_nofile 8192;
...
events {
worker_connections 4096;
}




File nginx.conf after optimization:
Mã: Chọn tất cả
user  nginx;
worker_processes 6;
worker_rlimit_nofile 8192;
   
   
error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
    worker_connections 4096;
}


http {
    include       /etc/nginx/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  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
}
Sửa lần cuối: nghiammo1992 01/01/2021 20:07
nghiammo1992
Hình đại diện của thành viên
Rank: ☀️2/30☀️
Cấp độ:
Tu luyện:
Like:
Online:
Bang hội: Tiếu Ngạo
Xếp hạng Bang hội: ⚡5/45⚡
Level:
Chủ đề đã tạo: 🩸4142/4142🩸
Tiền mặt:
Ngân hàng:
Nhóm:
Danh hiệu: ⚝⚝⚝Truyền Thuyết⚝⚝⚝
Giới tính:
Ngày tham gia:
Đến từ:
Thiết bị:
Số điện thoại:
(Cốc Cốc 91.0.146)

- Chia sẻ bài viết:

- Xem full chủ đề: http://chiase123.com/viewtopic.html?t=38005

- Link bài viết: http://chiase123.com/topic38005.html#p521254

Quay về VPS - Server