摘要: 发现从库同步失败,日志提示 Failed trying to load the MASTER synchronization DB from disk猜测是系统的锅; #masterbind 0.0.0.0 port 6379 timeout 65 maxclients 10000 database 阅读全文
posted @ 2023-02-27 13:32 阿拉善的樵夫 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 执行killall命令时提示:-bash: killall: command not found 没有killall命令的解决方法,执行如下命令安装就行:debian、ubuntu系统下: apt-get install psmisc centos或、rhel系统下: yum install -y 阅读全文
posted @ 2022-05-19 23:57 阿拉善的樵夫 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 背景:公司新项目用的laravel框架,初期无专门的运维,用guzzle封装的get/post的对外请求方法,请求某个接口的时候,每页条数per_page超过一定数就会报错 GuzzleHttp\Exception\RequestException: cURL error 18: transfer 阅读全文
posted @ 2022-04-19 11:09 阿拉善的樵夫 阅读(1724) 评论(0) 推荐(0) 编辑
摘要: npm初始化项目出现npm ERR! syscall rename的解决方案 删除项目下的package-lock.json Error: ENOENT: no such file or directory, scandir 'xxx\node-sass\vendor' 解决方案是执行以下方法: n 阅读全文
posted @ 2021-06-09 23:09 阿拉善的樵夫 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 如下: git push -u origin master -f 备注:慎用,此命令会删掉远程仓库的数据强行将本地仓库push至远程仓库 阅读全文
posted @ 2021-06-08 13:14 阿拉善的樵夫 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 问题不难,就是浪费查资料时间。 这是我在 composer 安装框架时,出现的问题。 [InvalidArgumentException] Could not find package topthink/think with version 5.1.*. 最终发现问题是,镜像地址问题。从而导致无法找 阅读全文
posted @ 2021-01-06 11:55 阿拉善的樵夫 阅读(2173) 评论(0) 推荐(0) 编辑
摘要: php一段代码,处理文件下载时的文件名,后来客户反馈说firefox,safari下的中文文件名不能正常显示。 $file_info['title'] = rawurlencode($file_info['title']); $filename=iconv('utf-8', 'gbk', $file 阅读全文
posted @ 2020-09-26 17:43 阿拉善的樵夫 阅读(215) 评论(1) 推荐(0) 编辑
摘要: 如何把多维数组中的每个子数组合并成一个新数组 $result,有两个方法: $merged = call_user_func_array('array_merge', $result); 如果是 PHP 版本在 5.6 以上,可以使用 ... 操作符: $merged = array_merge(. 阅读全文
posted @ 2020-08-05 18:08 阿拉善的樵夫 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 有次同事提出开发使用的mysql数据库连接很慢,因为我们的mysql开发数据库是单独一台机器部署的,所以认为可能是网络连接问题导致的。 在进行 ping和route后发现网络通信都是正常的,而且在mysql机器上进行本地连接发现是很快的,所以网络问题基本上被排除了。以前也遇到过一次这样的问题,可后来 阅读全文
posted @ 2020-07-06 14:36 阿拉善的樵夫 阅读(269) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000011925921 阅读全文
posted @ 2020-07-06 13:53 阿拉善的樵夫 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Ubuntu 更新 apt-get update 的时候 出现 Err:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease Could not resolve 'us.archive.ubuntu.com' 这个错误的时候 修改 resolv 阅读全文
posted @ 2020-07-06 11:35 阿拉善的樵夫 阅读(2170) 评论(0) 推荐(0) 编辑
摘要: 双向链表 <?php $obj = new SplDoublyLinkedList(); $obj->push(1); $obj->push(2); $obj->push(3); $obj->unshift(10); //unshifit 替换双向链表的首部 $obj->rewind(); // 使 阅读全文
posted @ 2020-06-11 11:27 阿拉善的樵夫 阅读(243) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/9dc09adbccc5 阅读全文
posted @ 2020-04-03 18:39 阿拉善的樵夫 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Illuminate database是一个非常强大非常优秀的ORM类库,也是一个非常实用的数据库操作组件。使用它可以轻松对数据库进行查询、插入、更新、删除等操作,支持MySQL,Postgres,SQL Server,SQLlite等。它还是Laravel框架的数据库组件。 本文单独将illumi 阅读全文
posted @ 2020-03-30 19:06 阿拉善的樵夫 阅读(2092) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/shaiguchun9503/article/details/82349050 阅读全文
posted @ 2020-03-30 18:05 阿拉善的樵夫 阅读(1633) 评论(0) 推荐(0) 编辑