elasticsearch rpm安裝以及配置修改

1.下載相應的版本cors

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.3.rpmelasticsearch

2.安裝tcp

  rpm -ivh elasticsearch-6.2.3.rpm日誌

3.建立日誌目錄接口

mkdir -pv /mnt/{data,log} # chown -R elasticsearch:elasticsearch /mnt/{data,log}get

4.修改配置文件/etc/elasticsearch/elasticsearch.ymlast

network.host: 0.0.0.0  #容許別的機器訪問配置

transport.tcp.port: 9300 #開放9300內部傳送接口
http.cors.enabled: true
http.cors.allow-origin: "*"
path.repo: [ "/mnt/esbak"  ] #備份network

相關文章
相關標籤/搜索