Nginx 配置之 worker_processes

Nginx About 244 words

1.9.10 版本后可以配置

worker_processes auto;
worker_cpu_affinity auto;

解释

0001表示启用第一个CPU内核,0010表示启用第二个CPU内核,依此类推

worker_processes     4;
worker_cpu_affinity 0001 0010 0100 1000;

参考

http://www.nginx.org/en/docs/ngx_core_module.html#worker_cpu_affinity

Views: 4,896 · Posted: 2019-03-19

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh