摘要: 配置对应的版本 ~6.0 和你的安装的 elasticsearch 保持一致 composer require elasticsearch/elasticsearch:~6.0 修elasticsearch 配置文件 /etc/elasticsearch/elasticsearch.yml (我安装 阅读全文
posted @ 2020-07-12 17:39 hubb 阅读(1759) 评论(0) 推荐(0) 编辑
摘要: 我的是主机访问虚拟机的共享文件下的项目 这个问题,是因为nginx去掉index.php的配置问题用` location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php/$1 last; } } 用以上代码就会出错,我改成 loc 阅读全文
posted @ 2020-07-12 14:07 hubb 阅读(2949) 评论(0) 推荐(0) 编辑
摘要: 予任何主机访问数据的权限 --所有ip主机 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION ; --指定ip主机 GRANT ALL PRIVILEGES ON *.* TO 阅读全文
posted @ 2020-07-12 10:27 hubb 阅读(764) 评论(0) 推荐(0) 编辑
摘要: systemctl命令: 1、启动防火墙 systemctl start firewalld.service 或 systemctl start firewalld 2、关闭防火墙 systemctl stop firewalld.service 或 systemctl stop firewalld 阅读全文
posted @ 2020-07-12 10:09 hubb 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 转载 https://blog.csdn.net/PustoTauranth/article/details/89915236 亲测有效 VMWare Tools 安装打开虚拟机,上方菜单栏点击安装 Tools。(若有插入 CD/DVD 请先弹出该 CD/DVD) 打开自动装载的 VMware To 阅读全文
posted @ 2020-07-11 23:22 hubb 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 一是nginx的配置文件问题 即 /usr/local/etc/nginx/nginx.conf (个人的,你们的路径不一定是这个)中的 fastcgi_param 参数配置问题,nginx默认配置为: 1 fastcgi_param SCRIPT_FILENAME /scripts$fastcgi 阅读全文
posted @ 2020-07-11 17:02 hubb 阅读(838) 评论(0) 推荐(0) 编辑
摘要: elasticsearch 版本 6.4.0 具体elasticsearch 和kibana 安装不清楚的请查看 1.安装类库 https://www.elastic.co/guide/en/elasticsearch/client/php-api/6.x/installation.html com 阅读全文
posted @ 2020-07-08 10:47 hubb 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 在PHP中,可用is_writable()函数来判断一个 文件/目录 是否可写,详情如下: 参考 is_writable (PHP 4, PHP 5) is_writable — 判断给定的文件名是否可写 说明 bool is_writable ( string $filename ) 如果文件存在 阅读全文
posted @ 2020-07-07 17:07 hubb 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 把gb2312置换成utf-8 $text=iconv("GB2312","UTF-8",$text); 在用$text=iconv("UTF-8","GB2312",$text)过程中,如果遇到一些特别字符时,如:"—",英文名中的"."等等字符,转换就断掉了。这些字符后的文字都没法继续转换了。 阅读全文
posted @ 2020-07-07 16:48 hubb 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 负载均衡:一听这词很多小伙伴吓坏了,前人就喜欢搞一些看起来很高大上的词,好让后生望而敬畏.那我们一起来捋一捋. 负载就是负担. 均衡就是平均分.这样 一说就是负担平均分. 服务器也要减减压我们都知道服务器是第三产业,服务行业,客户来了,你不能不服务.客户少还行,客户多了一台服务器就顶不住了,怎么办? 阅读全文
posted @ 2020-07-07 16:36 hubb 阅读(159) 评论(0) 推荐(0) 编辑