502 Bad Gateway可能性之一(Ubuntu 12.04+Nginx+uWSGI+Django )
原来是Ubuntu12.04源列表中的Nginx版本太低了(才1.1.9貌似),自己去官网下了最新的,编译安装,搞定!
Nginx配置
     Nginx的配置文件是/etc/nginx/nginx.conf,其中设置了一些必要的参数,我们发现其中这样的语句:
 ...
                            
                            
                                分类:
其他好文   时间:
2014-08-02 10:04:43   
                                阅读次数:
211
                             
                    
                        
                            
                            
                                /usr/local/lib/libz.a: could not read symbols: Bad value一般是64 位 电脑才会出现。解决方法如下:1 cd zlib-1.2.3 //进入zlib目录2 3 CFLAGS="-O3 -fPIC" ./configure //使用64位元的方法...
                            
                            
                                分类:
其他好文   时间:
2014-08-01 22:56:12   
                                阅读次数:
441
                             
                    
                        
                            
                            
                                Problem Description
The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided t...
                            
                            
                                分类:
其他好文   时间:
2014-08-01 16:10:21   
                                阅读次数:
184
                             
                    
                        
                            
                            
                                表结构变更后出现的ERROR OGG-01161 Bad column index (88)...
                            
                            
                                分类:
其他好文   时间:
2014-07-31 21:01:47   
                                阅读次数:
203
                             
                    
                        
                            
                            
                                无论怎么小心,想完全避免bad code是不可能的,此时就需要一些工具来帮助我们检查代码中是否存在会造成内存泄漏的地方。Android tools中的DDMS就带有一个很不错的内存监测工具Heap,本文讲解了如何使用Heap来进行内存监测。内存监测工具 DDMS --> Heap这里我使用eclip...
                            
                            
                                分类:
移动开发   时间:
2014-07-31 13:11:06   
                                阅读次数:
207
                             
                    
                        
                            
                            
                                今天收到报警邮件,提示网站502 bad gateway,输入网站url后果然无法打开:登录服务器查看nginx进程正常:查看fastcGI进程已经停止运行了:问题找到后就该查找是什么原因产生的问题,先把fastcGI进程启动后网站能够访问了再细找原因。查看php日志 tail –n 1000 /u...
                            
                            
                                分类:
Web程序   时间:
2014-07-30 17:12:33   
                                阅读次数:
329
                             
                    
                        
                            
                            
                                1、将来aapt和apktool拷贝到/usr/bin/下面 2、运行aapt报错: -bash: /usr/bin/aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 解决:反查需要的文件在哪个包中 yum whatprovides *...
                            
                            
                                分类:
系统相关   时间:
2014-07-30 15:07:05   
                                阅读次数:
583
                             
                    
                        
                            
                            
                                今天安装vmareworkstation10安装时虚拟机出现badargumentsfor:c:\programdata\vmware\vmareworkstation\uninstaller\uninsyall.exe原因:之前安装过workstatio9卸载没干净。解决方法:1.先下载并执行VMware_Install_Cleaner软件清理旧文件;2.重新安装vmareworkstation10即可,..
                            
                            
                                分类:
其他好文   时间:
2014-07-28 16:40:14   
                                阅读次数:
339
                             
                    
                        
                            
                            
                                Kewastunpackstats(): Bad Magic 1 (0x1108f7b87, 0) In Alert Logfile After Upgrading to 11.2.0.1
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.8 and later [Release: 9.2...
                            
                            
                                分类:
其他好文   时间:
2014-07-28 15:53:53   
                                阅读次数:
302