03 2018 档案

lumen伪静态路由设置示例
摘要:lumen路由文件中的配置: $app->get('info-{tid}.html', 'ThreadController@palmInfo'); 控制器中代码示例: public function palmInfo($tid) { try { var_dump($tid); exit('hi'); } catch (\Exception ... 阅读全文

posted @ 2018-03-28 17:47 dongruiha 阅读(433) 评论(0) 推荐(0) 编辑

nginx client_body_buffer_size
摘要:http://www.bubuko.com/infodetail-1760832.html 上传文件过大时,nginx会报链接里面的warn,请求body写磁盘到缓存文件,导致性能降低,可适当调大该参数,以提高上传性能。 阅读全文

posted @ 2018-03-28 16:02 dongruiha 阅读(1209) 评论(0) 推荐(0) 编辑

nginx模块开发
摘要:http://cjhust.blog.163.com/blog/static/17582715720134721544759/ 阅读全文

posted @ 2018-03-28 15:20 dongruiha 阅读(111) 评论(0) 推荐(0) 编辑

网络抓包wireshark
摘要:https://www.cnblogs.com/doit8791/p/5730595.html 阅读全文

posted @ 2018-03-27 18:17 dongruiha 阅读(88) 评论(0) 推荐(0) 编辑

Connection reset by peer引发的思考
摘要:http://www.mamicode.com/info-detail-506381.html 阅读全文

posted @ 2018-03-26 12:00 dongruiha 阅读(130) 评论(0) 推荐(0) 编辑

php mkdir没有权限不能创建成功的问题
摘要:php用mkdir创建目录时,必须保证要创建的目录的父级目录有用户权限才行, 比如当前执行脚本的用户是www用户,要创建的目录是/data/www/bbs/attach/2018 则/data/www/bbs/attach/目录必须是www www属主属组,如果是root root 则不会创建成功。 阅读全文

posted @ 2018-03-20 17:03 dongruiha 阅读(858) 评论(0) 推荐(0) 编辑

elasticsearch in语句和not in语句
摘要:sql语句示例: select * from table where t_id in (1,2,3,4) php代码示例: 阅读全文

posted @ 2018-03-20 10:04 dongruiha 阅读(4953) 评论(0) 推荐(0) 编辑

Mysql遇到 is marked as crashed and should be repaired 问题解决方法
摘要:找到mysql的安装目录的bin/myisamchk工具,在命令行中输入: myisamchk -c -r /usr/local/mysql/var/cehome_dz/user.MYI 阅读全文

posted @ 2018-03-17 10:57 dongruiha 阅读(204) 评论(0) 推荐(0) 编辑

php程序无法记录log情况下可尝试下面方法记录log
摘要:error_reporting(E_ERROR | E_PARSE);function shutdownCallback(){ $arrError = error_get_last(); //使用 error_get_last 能捕获错误,等下说明 $date = date('Y-m-d H:i:s 阅读全文

posted @ 2018-03-14 10:11 dongruiha 阅读(123) 评论(0) 推荐(0) 编辑

将 ELASTICSEARCH 写入速度优化到极限
摘要:https://www.easyice.cn/archives/207 阅读全文

posted @ 2018-03-12 18:20 dongruiha 阅读(520) 评论(0) 推荐(0) 编辑

Elasticsearch - 处理冲突
摘要:http://blog.csdn.net/xifeijian/article/details/49615559 阅读全文

posted @ 2018-03-06 10:32 dongruiha 阅读(129) 评论(0) 推荐(0) 编辑

elasticsearch5.0.1集群索引分片丢失的处理
摘要:elasticdump命令安装 yum install npm npm install elasticdump -g 命令安装完毕,可以测试。 可能会报出nodejs的版本之类的错误,你需要升级一下版本。 npm install -g n n stable 至此可以使用。 问题描述:索引label的 阅读全文

posted @ 2018-03-06 10:15 dongruiha 阅读(470) 评论(0) 推荐(0) 编辑

ELASTICSEARCH健康red的解决
摘要:http://blog.csdn.net/loveyaqin1990/article/details/77678108 阅读全文

posted @ 2018-03-05 19:43 dongruiha 阅读(188) 评论(0) 推荐(0) 编辑

使用linux远程登录另一台linux
摘要:可以用ssh命令行方式登录。对方需要开启ssh服务。ssh [-l login_name] [-p port] [user@]hostname例如,使用root用户登录 192.168.0.1ssh -l root 192.168.0.1如果:该服务器的ssh端口不是默认的22端口,需要指定登录端口 阅读全文

posted @ 2018-03-02 17:09 dongruiha 阅读(440) 评论(0) 推荐(0) 编辑

导航