我快乐
2011-10-31 19:22
请问apmserv 6.0 啥时候发布?谢谢! 今天2011年10月31日啦
aug4
2011-10-31 18:45
看了下HTTPSQS,里面用的是LIBEVENT来实现高并发,但是里面好像是单进程吧。我很疑惑在高并发的情况下,单进程怎么能处理得过来呢?
我用这个试了下:
struct evhttp *http_server = NULL;
event_init();
http_server = evhttp_start(app_config.addr, app_config.port);
if (http_server == NULL) {
kill(0, SIGTERM);
exit(-1);
}
fprintf(stdout, "app listen on %s:%d\n", app_config.addr, app_config.port);
evhttp_set_timeout(http_server, app_config.timeout);
evhttp_set_gencb(http_server, generic_request_handler, NULL);
event_dispatch();
evhttp_free(http_server);
在generic_request_handler里面sleep(1)才返回,我的虚拟机好像就假死了。
所以我很疑惑怎么处理高并发的。一定要指导我这个民大的师弟呀。。。
我用这个试了下:
struct evhttp *http_server = NULL;
event_init();
http_server = evhttp_start(app_config.addr, app_config.port);
if (http_server == NULL) {
kill(0, SIGTERM);
exit(-1);
}
fprintf(stdout, "app listen on %s:%d\n", app_config.addr, app_config.port);
evhttp_set_timeout(http_server, app_config.timeout);
evhttp_set_gencb(http_server, generic_request_handler, NULL);
event_dispatch();
evhttp_free(http_server);
在generic_request_handler里面sleep(1)才返回,我的虚拟机好像就假死了。
所以我很疑惑怎么处理高并发的。一定要指导我这个民大的师弟呀。。。
张宴 回复于 2011-11-2 14:01
每次set、get的操作时间非常短,2万个并发,是一个个处理顺序处理的,只不过每秒能处理2万次。跟Memcached单线程时,原理一样。
腐败网
2011-10-31 14:01
最新版啥时候发布啊,等不及啦
hotcts
2011-10-31 13:55
请问apmserv 6.0 啥时候发布?谢谢!
chuang_wei
2011-10-30 16:35
apmserv5.2.6 网页图片验证码不能显示?怎么解决?
求助
2011-10-28 11:22
你好 有个问题想咨询下 我用的DZX2版本的论坛 论坛主系统放在了D盘 然后我想在F盘设个专门下载东西的文件夹 请问如何将网站访问同时指向D盘和F盘?谢谢!(因服务器配置问题 只想开AP不想开IIS)
您好!向您请教一下关于nginx 限制的问题
需求是这样的
如:www.xxx.com/test 只允许 192.168.0.0/24网段访问 其余全部拒绝
问题就在使用了重写规则
server
{
listen 80;
server_name www.xxx.com;
index index.php index.htm index.html;
root /var/InfiNET/www/microsoft/www.xxx.com;
location /test/ {
allow 192.168.0.0/24;
deny all;
}
location ~ ^/360/.*.(php|php5)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
allow 192.168.0.0/24;
deny all;
}
location ~ .*.(php|php5)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
rewrite ^/test /index.php;
如果不使用重写当然可以行的通 使用了自然是不行的! 请问一下张老师可有什么好的办法? (不能限制/下 /下必须开放)
需求是这样的
如:www.xxx.com/test 只允许 192.168.0.0/24网段访问 其余全部拒绝
问题就在使用了重写规则
server
{
listen 80;
server_name www.xxx.com;
index index.php index.htm index.html;
root /var/InfiNET/www/microsoft/www.xxx.com;
location /test/ {
allow 192.168.0.0/24;
deny all;
}
location ~ ^/360/.*.(php|php5)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
allow 192.168.0.0/24;
deny all;
}
location ~ .*.(php|php5)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
rewrite ^/test /index.php;
如果不使用重写当然可以行的通 使用了自然是不行的! 请问一下张老师可有什么好的办法? (不能限制/下 /下必须开放)
你好,这个版本的具体什么时间可以发布呢?之前说九月份,后面我每天都打开看看,结果到后来又说十月,十月这二十多天我每天都在查看,结果到现在还没有……刚刚看你回的留言说:张 宴 2011-10-25 19:18 2012年元旦发布,请大家关注! 张 宴 2011-10-25 19:17 二十九号发布,请大家关注! 张 宴 2011-10-25 18:45 二十八号,发布,请大家关注 这个说实话感觉有点像被放飞机的感觉,在行内承认你这个做的不错,但是也不要这样呀……
willam
2011-10-27 10:24
张宴你好,我从你的博客中学习了安装nginx+php(fcgi)+mysql;在服务器上已经装好了,现在我还希望再装一个apache在这个环境下;可编译完以后httpd服务起不来,被告知_fpm错误;请问如何把apache整合到这套环境中;邮箱:309189165@qq.com希望不吝赐教













