优化配置 Nginx 和 PHP-FPM

nginx server_tokens off; hide nginx server tokens access_log off; reduce nginx write to disk times worker_processes 1; always equals grep processor /proc/cpuinfo | wc -l worker_connections 4096; ulimit -n will echo the max connection of server. client_body_buffer_size 32K; This handles the client buffer size, meaning any POST actions sent to Nginx. client_header_buffer_size 10k; large_client_header_buffers 4 32k; client_max_body_size 50m; Gzip Compression Gzip can help reduce the amount of network transfer Nginx deals with....

September 10, 2015 · 2 min · 367 words · Eric Yang