Nginxで、nginx.confのみの変更で、サイトのパフォーマンスをアップさせるには?何か良い方法はございませんか?
ちなみに、現在の記述は以下の通りです。
vi /etc/nginx/nginx.conf
#user nginx;
worker_processes 1;
worker_rlimit_nofile 16384;
#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
#pid /var/run/nginx.pid;
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 /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 120; #tcp_nodelay on; #gzip on; #gzip_disable "MSIE [1-6].(?!.*SV1)"; server_tokens off; # Reverse Proxy proxy_cache_path /var/cache/nginx/cache levels=1:2 keys_zone=my-key:64m max_size=3840m inactive=3d; proxy_temp_path /var/cache/nginx/tmp; include /etc/nginx/conf.d/*.conf;
}
override global parameters e.g. worker_rlimit_nofile
include /etc/nginx/*global_params;
~
~
~
あなたの回答
tips
プレビュー