上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: git remotegit remote不带参数,列出已经存在的远程分支,例如:#git remoteorigin_appsgit remote -v | --verbose列出详细信息,在每一个名字后面列出其远程url,例如:#git remote -vorigin_apps gitolite... 阅读全文
posted @ 2015-01-06 09:37 三六五 阅读(98) 评论(0) 推荐(0) 编辑
摘要: explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了:如:explainselectsurname,first_nameforma,bwherea.id=b.idEXPLAI... 阅读全文
posted @ 2014-12-17 09:37 三六五 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Python升级# yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64# wget http://www.python.org/ftp/python/2.7/Python-... 阅读全文
posted @ 2014-12-02 11:21 三六五 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 1. 基本查询: 构造查询数据。 > db.test.findOne() { "_id" : ObjectId("4fd58ecbb9ac507e96276f1a"), "name" : "stephen", "age" : 35, "genda" : "male", "email" : "step... 阅读全文
posted @ 2014-09-24 15:26 三六五 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装php5第二步:打开终端【为来方便,这里使用root用户】,使用CD命令进入到php5源码包的ext目录第三步:在终端键入以下命令./ext_skel --extname=extest我们的扩展库名叫“extest”,此命令执行后会在ext目录新建一个extest目录。第四步:回到终端,... 阅读全文
posted @ 2014-09-05 13:55 三六五 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 解决:1、下载php-redis zip安装包https://github.com/nicolasff/phpredis或我上传的http://download.csdn.net/detail/musicrabbit/58651152、找到PHP安装路径命令whereis phpize和wherei... 阅读全文
posted @ 2014-08-28 10:32 三六五 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 由于公司需要用到redis这个键值数据库,今天用了好久才把他安装了上去。具体安装方法如下:首先下载reids的压缩包 reidis-2.4.15.tar.gz,然后键入:# tar xf redis-2.4.45.tar.gz然后进入目录下键入如下命令:# make依赖包wgethttp://dow... 阅读全文
posted @ 2014-08-27 11:05 三六五 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 假设存在组合索引it1c1c2(c1,c2),查询语句select * from t1 where c1=1 and c2=2能够使用该索引。查询语句select * from t1 where c1=1也能够使用该索引。但是,查询语句select * from t1 where c2=2不能够使用... 阅读全文
posted @ 2014-08-19 11:36 三六五 阅读(98) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/hcq11/blog/item/9f5bfc6e696209d680cb4a25.htmlhttp://hi.baidu.com/litto/blog/item/759389dd198111375882dd1e.htmlhttp://blogold.china... 阅读全文
posted @ 2014-08-08 10:23 三六五 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 查看最大线程数:cat /proc/sys/kernel/threads-maxulimitUser limits - limit the use of system-wide resources.Syntaxulimit [-acdfHlmnpsStuv] [limit]Options-S Cha... 阅读全文
posted @ 2014-08-07 13:41 三六五 阅读(713) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页