摘要: 当然,在nginx中,对于http1.0与http1.1也是支持长连接的。什么是长连接呢?我们知道,http请求是基于TCP协议之上的,那么,当客户端在发起请求前,需要先与服务端建立TCP连接,而每一次的TCP连接是需要三次握手来确定的,如果客户端与服务端之间网络差一点,这三次交互消费的时间会比较多... 阅读全文
posted @ 2015-07-06 10:49 lpfuture 阅读(2081) 评论(0) 推荐(0) 编辑
摘要: MySQL性能分析1.使用explain语句去查看分析结果如explain select * from test1 where id=1;会出现:id selecttype table type possible_keys key key_len ref rows extra各列。其中,type=c... 阅读全文
posted @ 2015-07-06 10:23 lpfuture 阅读(3486) 评论(0) 推荐(0) 编辑
摘要: ? contents; //查看帮助show [globle|session] status; //查看运行状态show [globle|session] variables [like condition]; //查看配置项load data infile path into tablename;... 阅读全文
posted @ 2015-07-06 10:18 lpfuture 阅读(171) 评论(0) 推荐(0) 编辑