摘要: 1.CentOS 7 yum install -y http://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-15.ius.centos7.noarch.rpm yum -y update 2.安装所有必须的扩展: yum -y install php72u-intl 如果出现yum-errors: [Err 阅读全文
posted @ 2019-10-09 10:54 ChengPaoPao 阅读(1431) 评论(0) 推荐(0) 编辑
摘要: copy images docker save -o <path for generated tar file> <image name> docker load -i <path to image tar file> You should add filename (not just direct 阅读全文
posted @ 2019-10-07 11:30 ChengPaoPao 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 1.下载最新的认证: https://curl.haxx.se/ca/cacert.pem 保存到 D:\work\wamp\bin\php\php7.2.18\extras\ssl\cacert.pem 2.在php.ini 中 3.重启wampserver 阅读全文
posted @ 2019-10-07 11:15 ChengPaoPao 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1. Q:/usr/bin/env: ‘php\r’: No such file or directory A:输入:set ff=unix 再输入:wq 保存 Q:There are no commands defined in the "setup" namespace. A:php bin/m 阅读全文
posted @ 2019-07-26 11:27 ChengPaoPao 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 一.计算索引长度(key_len)总结: 阅读全文
posted @ 2019-04-09 14:03 ChengPaoPao 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 今天用户名+密码的方式登录出现以下问题:Permission denied (publickey) 一、可以把~/.ssh/known_hosts清除二、如果还是不行修改/etc/ssh/sshd-config文件,将其中的PermitRootLogin no修改为yes,PubkeyAuthent 阅读全文
posted @ 2019-03-19 13:38 ChengPaoPao 阅读(1398) 评论(0) 推荐(0) 编辑
摘要: 1 先登录到服务器上,将代码克隆下来 2 避免composer太慢,启用本镜像服务 可以先安装 apt-get install zip,unzip,php7.0-zip 以免中途会报错解压不了 3 在使用composer install过程中出现的问题: mbstring 解决办法: ext-dom 阅读全文
posted @ 2019-03-14 14:41 ChengPaoPao 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 地图搜索实现: ①参数: 左下角经纬度和右上角经纬度 图层数(zoom) 关键字等各种数据库中的字段 排序方式 具体的坐标点+距离 ②实现 a.用es作为关系库,首先先mapping所有的字段,然后用laravel命令把数据库中的数据导入到es中 b.收集前台参数 1.在矩形中查找: 2.在圆形中查 阅读全文
posted @ 2019-03-06 17:59 ChengPaoPao 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1.安装jenssegers/mongodb 2.定义model 3.列表+筛选+分类 阅读全文
posted @ 2018-12-18 17:19 ChengPaoPao 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: 1.去重取出id最小的记录 tip:在laravel框架里配置信息database设置了'strict' => true,所以在groupBy时只能select出groupBy后的字段,当想搜索出所有字段时,需要更改配置信息,解决办法如下: 阅读全文
posted @ 2018-11-12 14:59 ChengPaoPao 阅读(106) 评论(0) 推荐(0) 编辑