上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 179 下一页
摘要: 一,创建bucket bucket是,存储空间是OSS的全局命名空间,相当于数据的容器,可以存储若干文件。 点 完成创建 按钮 二,创建账号供访问oss资源 创建用户成功后,把accesskey id和accesskey secret复制保存下来 三,创建对bucket的访问策略 最后点击 确定 按 阅读全文
posted @ 2024-07-12 15:10 刘宏缔的架构森林 阅读(61) 评论(0) 推荐(0)
摘要: 一,用systemctl管理es: 1,创建service配置文件: [root@iZ2zejc9t0hf6pnw6sewrxZ config]# vi /lib/systemd/system/elasticsearch.service service文件代码: [root@blog config] 阅读全文
posted @ 2024-07-11 17:33 刘宏缔的架构森林 阅读(244) 评论(0) 推荐(0)
摘要: 一,php代码 1,用composer安装elasticsearch库 [lhdop@blog dignews]$ composer require elasticsearch/elasticsearch 2, 创建索引: //创建索引 public function create(){ //初始化 阅读全文
posted @ 2024-07-11 16:26 刘宏缔的架构森林 阅读(60) 评论(0) 推荐(0)
摘要: 一,创建索引 1,简单创建索引: [lhdop@blog ~]$ curl -X PUT "localhost:9200/my_suoyin" {"acknowledged":true,"shards_acknowledged":true,"index":"my_suoyin"} 2, 查看创建索引 阅读全文
posted @ 2024-07-11 14:44 刘宏缔的架构森林 阅读(575) 评论(0) 推荐(0)
摘要: 一,安装插件 1,查看已安装的插件: [lhdop@blog ~]$ curl -X GET "localhost:9200/_cat/plugins?v&s=component" name component version 2,从命令行安装smartcn分词插件: [lhdop@blog bin 阅读全文
posted @ 2024-07-11 11:53 刘宏缔的架构森林 阅读(403) 评论(0) 推荐(0)
摘要: 一,测试分词命令: 1,查看已安装的插件: [lhdop@blog ~]$ curl -X GET "localhost:9200/_cat/plugins?v&s=component" name component version 2,standard分词 [lhdop@blog ~]$ curl 阅读全文
posted @ 2024-07-11 11:17 刘宏缔的架构森林 阅读(2264) 评论(0) 推荐(0)
摘要: 一,安装需要的库 1,包的地址: https://packagist.org/packages/elasticsearch/elasticsearch 2,文档地址: https://www.elastic.co/guide/en/elasticsearch/client/php-api/curre 阅读全文
posted @ 2024-07-11 09:22 刘宏缔的架构森林 阅读(180) 评论(0) 推荐(0)
摘要: 一,报错信息: laravel在安装完成后初次运行时会报错, Internal Server Error Illuminate\Database\QueryException SQLSTATE[HY000]: General error: 8 attempt to write a readonly 阅读全文
posted @ 2024-07-10 17:05 刘宏缔的架构森林 阅读(423) 评论(0) 推荐(0)
摘要: 一,报错信息: [lhdop@blog site]$ composer create-project --prefer-dist laravel/laravel api Creating a "laravel/laravel" project at "./api" Installing larave 阅读全文
posted @ 2024-07-10 15:12 刘宏缔的架构森林 阅读(587) 评论(0) 推荐(0)
摘要: 一,什么是es? Elasticsearch 是一款近实时的搜索引擎,底层是基于 Lucene 做搜索,再此基础上加入了分布式的特性,以便支持海量数据的存储和搜索 官网: https://www.elastic.co/cn/ 二,下载 1,进入下载页面 在下载页面下载 得到链接地址后可以从服务端直接 阅读全文
posted @ 2024-07-10 14:13 刘宏缔的架构森林 阅读(465) 评论(0) 推荐(0)
上一页 1 ··· 84 85 86 87 88 89 90 91 92 ··· 179 下一页