Welcome! Log In Create A New Profile

Advanced

Windows system ,nginx +php 5.3 ,How can I do to support high concurrency?

Posted by MMDD 
Windows system ,nginx +php 5.3 ,How can I do to support high concurrency?
April 06, 2012 02:41AM
Hello every,
On my Windos 7 system, I use Nginx+ php 5.3 . How I can do to support high concurrency?
Now ,It only can support less than 20 concurrencys.
This is my nginx.conf:



worker_processes 1;

error_log logs/error.log crit;

pid ../data/nginx.pid;

events {
worker_connections 1024;
}


http {
include mime.types;
default_type application/octet-stream;

access_log off;
# log_format processtime '"$request" $status $request_time ';
# access_log logs/access.log processtime;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 120;

#gzip on;

# upstream backend {
# server 127.0.0.1:9000 weight=1;
# server 127.0.0.1:9001 weight=1;
# server 127.0.0.1:9002 weight=1;
# server 127.0.0.1:9003 weight=1;
# server 127.0.0.1:9004 weight=1;
# server 127.0.0.1:9005 weight=1;
# server 127.0.0.1:9006 weight=1;
# server 127.0.0.1:9007 weight=1;
# server 127.0.0.1:9008 weight=1;
# server 127.0.0.1:9009 weight=1;
# }
server {
include port.conf;
client_max_body_size 20m;

rewrite ^/netcenter/(.+)$ /$1;
rewrite ^/(.+)\.(asmx|aspx)$ /$1.php;

location / {
include root.conf;
}

location = / {
include root.conf;
fastcgi_pass 127.0.0.1:49772;
#fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME index.php;
include fastcgi_params;
#fastcgi_buffers 1024 1024k;
#fastcgi_buffer_size 1024k;
}

location ~* \.(php|asmx|aspx)$ {
include root.conf;
fastcgi_pass 127.0.0.1:49772;
#fastcgi_pass backend;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
include fastcgi_params;
#fastcgi_buffers 1024 1024k;
#fastcgi_buffer_size 1024k;
}
}
}
Many thanks of you ,wether you can or not help me ~~
Re: Windows system ,nginx +php 5.3 ,How can I do to support high concurrency?
April 06, 2012 11:20PM
Can anyone help me ?
Please~
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready