elasticsearch笔记

摘要: 所有查询都是以query包括的 简单查询 match_all:{}查询全部数据 from :1//从哪里开始 size:1//总条数 { query{ match{ testtitle:'sdsdasdasdas', } }, sort:[ dates:{order:desc} ] } 聚合查询 { 阅读全文
posted @ 2018-04-12 21:17 我很迷茫 阅读(145) 评论(0) 推荐(0) 编辑

php性能提升与检测

摘要: 1、使用xhprof分析器检测性能各种消耗 2、php-fpm中进程池的配置参数查看最大进程数、进程最大处理http请求量、进程时间过多的http请求、每个进程使用的最大内存、 参考地址:https://segmentfault.com/q/1010000000256516 3、hhvm的状态信息与 阅读全文
posted @ 2018-04-08 22:09 我很迷茫 阅读(157) 评论(0) 推荐(0) 编辑

php安全

摘要: 1、会话安全性 会话固化 一种获取有效回话标识符的方法,他将运行恶意用户通过强制使用回话ID来轻松模拟一个真实用户 攻击方法:<a href="http://a.com/index.php?PHPSESSID=1234">点击此处</a> 保护措施:1).通过内置session_regenerate 阅读全文
posted @ 2018-04-08 18:21 我很迷茫 阅读(137) 评论(0) 推荐(0) 编辑

innodb表锁情况

摘要: MySQL InnoDB默认行级锁。行级锁都是基于索引的 行级锁变为表级锁情况如下: 1、如果一条SQL语句用不到索引是不会使用行级锁的,会使用表级锁把整张表锁住。 2、表字段进行变更。 3、进行整表查询。(没使用索引) 4、like语句查询的时候。(没使用索引) 阅读全文
posted @ 2018-03-28 09:31 我很迷茫 阅读(3630) 评论(2) 推荐(0) 编辑

适配器

摘要: err = $err; } public function getErr(){ return $this->err; }}class fileErr{ private $errObj; public function __construct(err $obj){ $this->errObj = $obj; } publi... 阅读全文
posted @ 2018-03-23 16:21 我很迷茫 阅读(270) 评论(0) 推荐(0) 编辑

mysql root看不到mysql表

摘要: 1.首先停止mysql服务:service mysqld stop2.加参数启动mysql:/usr/bin/mysqld_safe --skip-grant-tables & 然后就可以无任何限制的访问mysql了3.root用户登陆系统:mysql -u root -p mysql4.切换数据库 阅读全文
posted @ 2018-03-17 22:55 我很迷茫 阅读(577) 评论(0) 推荐(0) 编辑

get post header获取数据方方法

摘要: /** * get方式获取数据 * @param $url * @param $data * @return bool|string */public function methodGet($url,$data){ $buildQuery = http_build_query($data); ech 阅读全文
posted @ 2018-03-16 14:07 我很迷茫 阅读(809) 评论(0) 推荐(0) 编辑

phpstorm

摘要: http://idea.iteblog.com/key.php 阅读全文
posted @ 2017-10-27 13:43 我很迷茫 阅读(70) 评论(0) 推荐(0) 编辑

mysql缓冲

摘要: 阅读全文
posted @ 2017-09-13 10:00 我很迷茫 阅读(112) 评论(0) 推荐(0) 编辑

mysql缓存分析流程

摘要: 阅读全文
posted @ 2017-09-11 17:21 我很迷茫 阅读(83) 评论(0) 推荐(0) 编辑