摘要: 1、nginx进程数,建议按照cpu数目来指定,一般跟cpu核数相同或为它的倍数。worker_processes 8;2、为每个进程分配cpu,上例中将8个进程分配到8个cpu,当然可以写多个,或者将一个进程分配到多个cpu。worker_cpu_affinity 00000001 0000001 阅读全文
posted @ 2018-07-15 20:59 此生不换Yang 阅读(411) 评论(0) 推荐(1) 编辑
摘要: # For more information on configuration, see:# * Official English Documentation: http://nginx.org/en/docs/# * Official Russian Documentation: http://n 阅读全文
posted @ 2018-07-15 14:13 此生不换Yang 阅读(18338) 评论(0) 推荐(1) 编辑