nginx optimization
-
Detailed Explanation of Nginx Configuration File Optimization
1. Main configuration file optimization: # vi /usr/local/nginx/conf/nginx.conf —————————————– user nginx nginx; worker_processes 8…
-
Nginx multi-core CPU worker_cpu_affinity usage methods and examples
Nginx does not enable multi-core CPU utilization by default. We can fully utilize multi-core CPUs by increasing the `worker_cpu_affinity` configuration parameter. The CPU is the most critical resource for task processing and computation; the more CPU cores, the better the performance. Configuring Nginx multi-core CPUs…
-
Two process management methods and optimizations of php-fpm used by Nginx
php-fpm currently has two main branches, corresponding to php-5.2.x and php-5.3.x versions respectively. In version 5.2.x, php-fpm.conf uses the XML format, while in the newer 5.3.x version, it uses the php…