张先生:
您好!本人的平台使用了2 台mysql5.1 并运行 replication。 安装了mysqlcft 后,replication 在运行几个小时便会崩溃,索引文件也无法恢复。你可以给我源代码或调试版本源代码吗? 谢谢!
您好!本人的平台使用了2 台mysql5.1 并运行 replication。 安装了mysqlcft 后,replication 在运行几个小时便会崩溃,索引文件也无法恢复。你可以给我源代码或调试版本源代码吗? 谢谢!
张老师:
你好!
如果我想让系统执行.do文件,应该怎么设置,我用的是apmserv5.2.6把do文件改成php来执行?
谢谢!
在下做了一个网站,不过比起你的技术,相差甚远,http://wzoan.com
你好!
如果我想让系统执行.do文件,应该怎么设置,我用的是apmserv5.2.6把do文件改成php来执行?
谢谢!
在下做了一个网站,不过比起你的技术,相差甚远,http://wzoan.com
jason
2010-4-28 20:23
张老大,问你个问题:我用curl工具查询了你的首页,知道你的首页设置了expires
curl -I www.6curl.com
HTTP/1.1 200 OK
Date: Wed, 28 Apr 2010 12:12:34 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Wed, 28 Apr 2010 12:12:34 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8
但是我在我的nginx服务器上也设置了expires,但是用curl工具却查不到expires,不知是那出错了,张老大帮我看看吧
nginx的expires设置如下:
server
{
listen 80;
server_name *.*.*.*;
index index.html index.htm index.php;
root /data0/htdocs/wordpress;
#limit_conn crawler 20;
location ~ .*.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~* ^.+.(gif|jpg|jpeg|png|bmp|swf|html)$
{
expires 30d;
}
location ~* ^.+.(js|css)?$
{
expires 1h;
}
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/access.log access;
}
curl的查询结果如下:
HTTP/1.1 200 OK
Server: nginx/0.8.15
Date: Wed, 28 Apr 2010 20:21:43 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.10
curl -I www.6curl.com
HTTP/1.1 200 OK
Date: Wed, 28 Apr 2010 12:12:34 GMT
Server: Apache
X-Powered-By: PHP/5.2.13
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Wed, 28 Apr 2010 12:12:34 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=utf-8
但是我在我的nginx服务器上也设置了expires,但是用curl工具却查不到expires,不知是那出错了,张老大帮我看看吧
nginx的expires设置如下:
server
{
listen 80;
server_name *.*.*.*;
index index.html index.htm index.php;
root /data0/htdocs/wordpress;
#limit_conn crawler 20;
location ~ .*.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~* ^.+.(gif|jpg|jpeg|png|bmp|swf|html)$
{
expires 30d;
}
location ~* ^.+.(js|css)?$
{
expires 1h;
}
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /data1/logs/access.log access;
}
curl的查询结果如下:
HTTP/1.1 200 OK
Server: nginx/0.8.15
Date: Wed, 28 Apr 2010 20:21:43 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/5.2.10
请问如果用FastCGI跑php,而用户会一直开着一个窗口页面,这样就经常造成php-cgi并发的不够用,请问有什么办法能够解决吗,还是只能开更多的php-cgi进程来维持
菜鸟小五
2010-4-27 21:18
为什么我安装装好APMServ 5.2.6 后,为何不能运行ASP文件?
打开本地网址后只出现文件列表。我该怎么处理?
打开本地网址后只出现文件列表。我该怎么处理?







张宴哥,请问你有没有想过用windows下作nginx的生产环境???我自己做了一个但是一直环境不稳定(因为自己不怎么会linux环境) 所以想请宴哥做一个windows下的nginx生产环境,希望张宴哥能做一个出去,用win下作服务器的也很多啊....









能加你邮箱或者QQ吗? xiaopengi386@gmail.com