摘要: 修改 elasticsearch/config/elasticsearch.yml 取消以下配置注释: network.host: 0.0.0.0 #改为0.0.0.0对外开放,如对特定ip开放则改为指定ip http.port: 9200 #可更改端口不为9200 启动的话可能会报错 [1]: m 阅读全文
posted @ 2019-12-18 17:09 php的自我修养 阅读(7640) 评论(0) 推荐(1) 编辑
摘要: 选择需要安装的版本:https://www.elastic.co/cn/downloads/past-releases/ 下载: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.7.0-linux-x 阅读全文
posted @ 2019-12-17 16:10 php的自我修养 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: 转载至:https://cloud.tencent.com/developer/ask/170024 Linux 部署 Laravel项目,运行报错 The stream or file "/data/www/laravel/storage/logs/laravel.log" could not b 阅读全文
posted @ 2019-11-23 22:04 php的自我修养 阅读(6361) 评论(0) 推荐(0) 编辑
摘要: 访问:https://gogs.io/docs/installation 我选择的是二进制安装最新版: wget https://dl.gogs.io/0.11.91/gogs_0.11.91_linux_amd64.tar.gz 解压: tar -xzvf gogs_0.11.91_linux_a 阅读全文
posted @ 2019-11-01 15:18 php的自我修养 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 试过很多百度的解决方法没有成功,觉得可能有些模糊,所以想写的详细些,方便少采坑。 登录数据库: mysql -u root -pxxxxx 查询sql_mode包含哪些模块: select @@sql_mode; 去掉字符串中的 ONLY_FULL_GROUP_BY 复制: STRICT_TRANS 阅读全文
posted @ 2019-10-28 11:32 php的自我修养 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 对接腾讯云文件上传时发现,返回的对象里有受保护的变量,导致常规的解析一直解析不了 网上找了下分享下 $rst = (array)$result; //解析获取受保护的data 前面加上\0*\0 $data = $rst["\0*\0data"]; //返回上传图片链接 return $data[' 阅读全文
posted @ 2019-06-01 14:30 php的自我修养 阅读(398) 评论(0) 推荐(0) 编辑