02 2013 档案

C 常用库
摘要:时间: ------------------------------------------------------------------------------------------------时间戳time_t t = time( NULL );//时间戳得到时间戳结构体:struct tm... 阅读全文

posted @ 2013-02-27 17:28 liushan 阅读(404) 评论(0) 推荐(0)

Nginx 偶尔出现502错误
摘要:如果NGINX后端多台在负载,使用了upstream php_servers{ server 127.0.0.1:9000; server 127.0.0.1:9001; server 127.0.0.1:9002; } fastcgi_next_upstream error timeout invalid_header http_500 http_503;//监听了500错误当程序中有抛出500时候,nginx会根据服务列表重试,当全部均抛出500的时候,nginx会抛出502页面解决方法:去除http_500,因为500是一般程序正常抛出的错误代码,不应该监听次错误代码 阅读全文

posted @ 2013-02-21 17:12 liushan 阅读(3276) 评论(0) 推荐(0)