配置nginx worker 进程数
配置nginx worker 进程数一般修改为cpu的核数的个数那么多
cd /application/nginx/conf
grep worker_processes nginx.conf
sed -i 's/worker_processes1/worker_processes10/g' nginx.conf
grep worker_processes nginx.conf
/application/nginx/sbin/nginx -s> ps -ef |grep nginx
##################################
# cd /application/nginx/conf
#grep worker_processes nginx.conf
worker_processes1;
# sed -i 's/worker_processes1/worker_processes10/g' nginx.conf
#grep worker_processes nginx.conf
worker_processes10;
# /application/nginx/sbin/nginx -s> # ps -ef |grep nginx
nginx 152915190 09:06 ? 00:00:00 php-fpm: pool www
nginx 153015190 09:06 ? 00:00:00 php-fpm: pool www
nginx 153115190 09:06 ? 00:00:00 php-fpm: pool www
nginx 153215190 09:06 ? 00:00:00 php-fpm: pool www
nginx 153315190 09:06 ? 00:00:00 php-fpm: pool www
nginx 153415190 09:06 ? 00:00:00 php-fpm: pool www
nginx 153515190 09:06 ? 00:00:00 php-fpm: pool www
root 8467 10 09:45 ? 00:00:00 nginx: master process /application/nginx-1.6.2/sbin/nginx
nginx 873384670 11:44 ? 00:00:00 nginx: worker process
nginx 873484670 11:44 ? 00:00:00 nginx: worker process
nginx 873584670 11:44 ? 00:00:00 nginx: worker process
nginx 873684670 11:44 ? 00:00:00 nginx: worker process
nginx 873784670 11:44 ? 00:00:00 nginx: worker process
nginx 873884670 11:44 ? 00:00:00 nginx: worker process
nginx 873984670 11:44 ? 00:00:00 nginx: worker process
nginx 874084670 11:44 ? 00:00:00 nginx: worker process
nginx 874184670 11:44 ? 00:00:00 nginx: worker process
nginx 874284670 11:44 ? 00:00:00 nginx: worker process
root 874486260 11:44 pts/1 00:00:00 grep nginx
#
查看cpu方法(虚拟机无法查看)
grep ‘physical>
# grep 'physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical>
physical> 或者按top
先按top
之后再1
这样可以展示cpu
页:
[1]