开启 Profiling 
功能,对慢查询进行优化:mongodb可以通过profile来监控数据,进行优化。查看当前是否开启profile功能用命令db.getProfilingLevel() 
返回level等级,值为0|1|2,分别代表意思:0代表关闭,1代表记录慢命令,2代表全部db.setPr...
                            
                            
                                分类:
数据库   时间:
2014-05-24 01:26:42   
                                阅读次数:
352
                             
                    
                        
                            
                            
                                --手工释放linux内存——/proc/sys/vm/drop_caches总有很多朋友对于Linux的内存管理有疑问,之前一篇日志似乎也没能清除大家的疑虑。而在新版核心中,似乎对这个问题提供了新的解决方法,特转出来给大家参考一下。最后,还附上我对这方法的意见,欢迎各位一同讨论。 
当在Linux下...
                            
                            
                                分类:
系统相关   时间:
2014-05-24 00:39:28   
                                阅读次数:
503
                             
                    
                        
                            
                            
                                What is Build Profile?ABuild profileis a set of 
configuration values which can be used to set or override default values of 
Maven build. Using a build...
                            
                            
                                分类:
其他好文   时间:
2014-05-23 12:13:49   
                                阅读次数:
426
                             
                    
                        
                            
                            
                                login 
shell:第一次登录进系统时的shell,一般是指本机启动时的控制台shell或者ssh远程登录时的shell。interactive 
shell:登录以后,再打开控制台时运行的shell。none interactive shell:只是用来执行脚本的shell,执行完就结束进程了,...
                            
                            
                                分类:
其他好文   时间:
2014-05-23 08:52:18   
                                阅读次数:
313
                             
                    
                        
                            
                            
                                今天真机调试的时候莫名其妙遇到了这样的一个问题:This product type must be built using a provisioning profile, however no provisioning profile matching both the identity "iPhone Developer" and the bundle identifier.....具体如下图所...
                            
                            
                                分类:
移动开发   时间:
2014-05-22 11:17:43   
                                阅读次数:
415
                             
                    
                        
                            
                            
                                mysql 自定义存储过程和触发器
--存储过程示范
	DROP PROCEDURE IF EXISTS PRO_TEST;
	CREATE PROCEDURE PRO_TEST(IN NUM_IN INT,OUT NUM_OUT INT,INOUT NUM_INOUT)
	BEGIN
		//DO ANYTHING YOU WANT
	END;
	
	参数解释:
		in : 就是输入参数,输...
                            
                            
                                分类:
数据库   时间:
2014-05-22 06:42:40   
                                阅读次数:
345
                             
                    
                        
                            
                            
                                二、SQL Structur query language 
结构化查询语言,是操作关系型数据库中的对象。 DDL(Data definition language 数据定义语言),用于建表或删表操作,以及对表约束进行修改 
create table , alter table , drop tabl....
                            
                            
                                分类:
数据库   时间:
2014-05-21 17:34:25   
                                阅读次数:
383
                             
                    
                        
                            
                            
                                Iptables防火墙配置
安装防火墙
sudo apt-get install iptables
查看状态
sudo iptables --list
sudo iptables -A OUTPUT -p tcp --dport 80 -j DROP
浏览器不能上网
清除防火墙设置
Sudo iptables -F
Sudo iptables  -D OUTPUT...
                            
                            
                                分类:
其他好文   时间:
2014-05-21 16:18:12   
                                阅读次数:
316
                             
                    
                        
                            
                            
                                在.bash_profile中增加一行exportJAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8就可以了。
                            
                            
                                分类:
编程语言   时间:
2014-05-21 02:14:53   
                                阅读次数:
243
                             
                    
                        
                            
                            
                                source/etc/profile报错-bash:xport:commandnotfound这个错误,我百了很长时间没有找到答案,最后我自己解决了。原因是这样的。我在/etc/profile中添加过东西,vi/etc/profile我发现在最后几行,有一个export写成了xport.改过来之后就好了。
                            
                            
                                分类:
其他好文   时间:
2014-05-21 00:22:00   
                                阅读次数:
452