1. 首页
  2. > 香港公司注册 >

数据库伪集群是什么意思(静态库和共享库的区别)

1、安装jdk11


#查看可安装jdk版本 yum list|grep jdk #安装jdk11 yum install java-11-openj库dk.x86_64 或者下载压缩包解压安装 #检查jdk环境变量 v和im /etc/profi伪le #如果路径不对,修改路径后,执行 sourc集群e /etc/profile

2、wget 获取elasticsearch压缩包


https://www.elastic.co/cn/downloads/past意思-releases/elasticsearch-7.12.1.zip


https://pan.baidu.com/s/1u-3M4yr7zTjioYQZQKCeYQ 提取码:vfr3


3、建三个目录master,node1,no数据库de2


cp elasticsearch-7.12.1-darwin-x86_64.tar.gz静态 master等三个目录


4、root用户需授权


chown -R elastic:elastic elasticsearch-7.12.1


elasticsearch需要普通用户启动,不能root启动


5、elasticsearch.yml配置


cluster.nam数据库e: myCluster node.name: master node.attr.rack: r1 path.data: /opt/静态elas是什么ticsearch/master/data path.logs: /opt/elasticsearch/master/log bootstrap.me集群mory_lock: tr和ue http.port: 9200 transport.tcp.port: 9300 #这里如果curl 127.0.0.1:9200拒绝访问就不能配置127.0.0.1,否则查看节点时只能看到一个节点 discovery.seed_hosts: ["192.区别168.0.177:9300", "192.168.0.177:9301", "192.168.0.177:9302"] cluster.initial_master_nodes: ["master", "node1", "node2"] node.master: true node.意思da伪共享ta: true http.cors.enabled: true http.cors.allow-origin: "*" xpack.ml.enabled: false

6、获取ik分词器


wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.12.1/elasticsearch-analysis-ik-的7.12.1.zip

7、创建ik目录


m是什么kdir ik unzip elasticsearch-analysis-ik-7.12.1.zip cp -r ik maste库r/e区别lasticsearch-7.12.1/plugins

7、启动nohup ./bin/elasticsearch -d


http共享://192.168.0.177:9200/_的cat/nodes?v






版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至123456@qq.com 举报,一经查实,本站将立刻删除。

联系我们

工作日:9:30-18:30,节假日休息