全球主机交流论坛

标题: windows下niginx+PHP [打印本页]

作者: Polymer_dg    时间: 2012-8-13 15:01
标题: windows下niginx+PHP
本帖最后由 Polymer_dg 于 2012-8-13 15:09 编辑

windows下niginx+PHP 怎么只能一个并发啊?

这个是测试连接:http://202.103.154.2:88/test.html

找遍了google 百度也没找到办法,求助各位大神~~~

nginx.conf配置

#user  nobody;
worker_processes  1;

error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

worker_rlimit_nofile 8192;

events {
   
    worker_connections  1024;
}


http {


        include       mime.types;
        default_type  application/octet-stream;
        log_format  main  '$remote_addr - $remote_user [$time_local] $request '
                      '"$status" $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';




        sendfile        on;
        #tcp_nopush     on;
        #keepalive_timeout  0;
        keepalive_timeout  65;
        gzip  on;

        server {
                listen         80;
                server_name     _;
                access_log      logs/access.log main;
                server_name_in_redirect  off;
                location / {
                            root  nginx/html;
                            index index.html;
                }
        }
    include vhosts/*.conf;
}
作者: 用户名    时间: 2012-8-13 15:07
你说啥
作者: lazyzhu    时间: 2012-8-13 15:13
并发 or 进程?
进程=worker_processes=1
并发=worker_connections*worker_processes=1024
作者: geyunbing    时间: 2012-8-13 15:13
提示: 作者被禁止或删除 内容自动屏蔽
作者: Polymer_dg    时间: 2012-8-13 15:15
lazyzhu 发表于 2012-8-13 15:13
并发 or 进程?
进程=worker_processes=1
并发=worker_connections*worker_processes=1024

并发啊!不能同时运行几个PHP,只能一个一个运行!
作者: Polymer_dg    时间: 2012-8-13 15:15
geyunbing 发表于 2012-8-13 15:13
蛋疼死了

求指教,
作者: Polymer_dg    时间: 2012-8-13 15:18
用apache就可以 并发  换nginx 就不行了~~
作者: lazyzhu    时间: 2012-8-13 15:21
Polymer_dg 发表于 2012-8-13 15:15
并发啊!不能同时运行几个PHP,只能一个一个运行!

PHP进程和nginx配置有啥关系?
改php.ini或者php-fqm.conf
作者: Polymer_dg    时间: 2012-8-13 15:50
有没有配置成功的啊
作者: lazyzhu    时间: 2012-8-13 15:53
Polymer_dg 发表于 2012-8-13 15:50
有没有配置成功的啊

阻塞问题问圈圈,
作者: Polymer_dg    时间: 2012-8-13 16:12
有空再研究了看来,已经纠结了1天了~~先用apache 吧~~~




欢迎光临 全球主机交流论坛 (https://lilynana.eu.org/) Powered by Discuz! X3.4