一般来说php-cgi进程数不够用、php执行时间长(mysql慢)、或者是php-cgi进程死掉,都会出现502错误;Nginx 504 Gateway Time-out则是与nginx.conf的设置有关;1.502 和 php-fpm.conf1.request_terminate_timeo...
分类:
系统相关 时间:
2015-03-28 14:08:35
阅读次数:
182
本文主要分析的是web.py库的 application.py 这个模块中的代码。总的来说, 这个模块主要实现了WSGI兼容的接口,以便应用程序能够被WSGI应用服务器调用 。WSGI是 Web Server Gateway Interface 的缩写,具体细节可以查看WSGI的WIKI页面接口的使...
分类:
移动开发 时间:
2015-03-20 12:42:47
阅读次数:
197
';echo $_SERVER['GATEWAY_INTERFACE'];//返回服务器使用的 CGI 规范的版本echo '';echo $_SERVER['SERVER_ADDR'];//返回当前运行脚本所在的服务器的 IP 地址echo '';echo $_SERVER['SERVER_NAM...
分类:
Web程序 时间:
2015-03-18 15:47:05
阅读次数:
228
strophe + nginx + openfire got 504 (Gateway Time-out) then 404 (Invalid SID.)modify nginx.conf , add 3 red lines belowlocation /http-bind/ { pr...
分类:
其他好文 时间:
2015-03-17 19:45:11
阅读次数:
330
Ubuntu修改网卡配置文件:
vim /etc/network/interfacescat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.41
gateway 192.168.1.1
netmask 255.255.255.0
...
分类:
系统相关 时间:
2015-03-16 16:23:35
阅读次数:
132
设置IP、DNS、网关 >netsh?interface?ip?set?address?name="本地连接"?source=static?addr=192.168.132.5?mask=255.255.255.0
>netsh?interface?ip?set?address?name="本地连接"?gateway=192...
分类:
其他好文 时间:
2015-03-12 01:13:31
阅读次数:
243
1.对方wlan没有连接,这种如果是他的网线没插,没有办法。如果不是,并且进入路由器查看宽带是否连接。2.连接无线网络,但是显示无INTERNET访问,可以ipconfig查看ip、mask、gateway是否正确由于本人网络到期,学习破解wifi,连入他人wifi,显示无INTERNET访问,由于...
分类:
Web程序 时间:
2015-03-11 23:26:24
阅读次数:
168
502 Bad Gateway
how to solve this problem ?
on this page , Ctrl + F5 ,send the request to server !...
分类:
其他好文 时间:
2015-03-11 10:54:10
阅读次数:
104
什么是CGI CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。 CGI可以用任何一种语言编写,只要这种...
分类:
Web程序 时间:
2015-03-10 14:08:15
阅读次数:
299
公共网关接口 CGI(Common Gateway Interface) 是WWW技术中最重要的技术之一,有着不可替代的重要地位。CGI是外部应用程序(CGI程序)与Web服务器之间的接口标准,是在CGI程序和Web服务器之间传递信息的规程。CGI规范允许Web服务器执行外部程序,并将它们的输出发送...
分类:
其他好文 时间:
2015-03-10 10:23:36
阅读次数:
217