设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย french

搜索
热搜: 活动 交友 discuz

windows下niginx+PHP [复制链接]
查看:87 | 回复:8

15

主题

15

回帖

87

积分

注册会员

积分
87
发表于 2012-8-13 16:12:46 | 显示全部楼层 |阅读模式
有空再研究了看来,已经纠结了1天了~~先用apache 吧~~~

15

主题

15

回帖

87

积分

注册会员

积分
87
 楼主| 发表于 2012-8-13 15:50:26 | 显示全部楼层
有没有配置成功的啊

471

主题

8105

回帖

1万

积分

论坛元老

积分
17707
发表于 2012-8-13 15:53:30 | 显示全部楼层

Polymer_dg 发表于 2012-8-13 15:50



有没有配置成功的啊

阻塞问题问圈圈,

471

主题

8105

回帖

1万

积分

论坛元老

积分
17707
发表于 2012-8-13 15:50:00 | 显示全部楼层

Polymer_dg 发表于 2012-8-13 15:15



并发啊!不能同时运行几个PHP,只能一个一个运行!

PHP进程和nginx配置有啥关系?
改php.ini或者php-fqm.conf

144

主题

4637

回帖

9786

积分

论坛元老

积分
9786
发表于 2012-8-13 15:21:16 | 显示全部楼层
你说啥

471

主题

8105

回帖

1万

积分

论坛元老

积分
17707
发表于 2012-8-13 15:15:00 | 显示全部楼层
并发 or 进程?
进程=worker_processes=1
并发=worker_connections*worker_processes=1024

247

主题

7695

回帖

1万

积分

论坛元老

积分
16213
发表于 2012-8-13 15:07:29 | 显示全部楼层

lazyzhu 发表于 2012-8-13 15:13



并发 or 进程?
进程=worker_processes=1
并发=worker_connections*worker_processes=1024

并发啊!不能同时运行几个PHP,只能一个一个运行!

15

主题

15

回帖

87

积分

注册会员

积分
87
 楼主| 发表于 2012-8-13 15:13:20 | 显示全部楼层

geyunbing 发表于 2012-8-13 15:13



蛋疼死了

求指教,

15

主题

15

回帖

87

积分

注册会员

积分
87
 楼主| 发表于 2012-8-13 15:13:59 | 显示全部楼层
用apache就可以 并发  换nginx 就不行了~~

本帖最后由 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;
}
您需要登录后才可以回帖 登录 | 立即注册

论坛客服/商务合作/投诉举报:2171544 (QQ)
落伍者创建于2001/03/14,本站内容均为会员发表,并不代表落伍立场!
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论!
落伍官方微信:2030286 邮箱:(djfsys@gmail.com|tech@im286.com)
© 2001-2014

浙公网安备 33060302000191号

浙ICP备11034705号 BBS专项电子公告通信管[2010]226号

  落伍法律顾问: ITlaw-庄毅雄

Archiver|手机版|Discuz! X

GMT+8, 2026-6-10 16:18 , Processed in 0.018362 second(s), 4 queries , Gzip On, Redis On.

返回顶部