centos7安装elasticsearch

安装

cd /usr/local

 wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.rpm

 rpm -ivh elasticsearch-6.5.4.rpm 

vi /etc/elasticsearch/elasticsearch.yml

     修改http.port: 9200   ; network.host: 0.0.0.0

systemctl start elasticsearch

安装kibana 

 wget https://artifacts.elastic.co/downloads/kibana/kibana-6.5.4-x86_64.rpm

sha1sum kibana-6.5.4-x86_64.rpm

yum -y install kibana-6.5.4-x86_64.rpm

修改配置文件  vi /etc/kibana/kibana.yml

server.port: 5601

server.host: "0.0.0.0"   

elasticsearch.url: "http://127.0.0.1:9200" 

你可能感兴趣的:(linux)