Installing ElasticSearch on Ubuntu 12.04

前端 未结 5 1805
温柔的废话
温柔的废话 2021-02-09 23:04

I have a VM running Ubuntu 12.04, and am trying to install ElasticSearch. I have followed this gist in the best \'learn X the hard way\' spirit, and everything installs fine - p

5条回答
  •  梦如初夏
    2021-02-09 23:41

    follow this step and easily configer an Elastic Search.

    Step 1 — Installing Java :

    $ sudo apt-get update 
    
    $ sudo apt-get install openjdk-7-jre 
    
    $ java -version 

    Step 2 — Downloading and Installing Elasticsearch :

    $ wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.2.deb 
    
    $ sudo dpkg -i elasticsearch-1.7.2.deb 
    
    $ sudo update-rc.d elasticsearch defaults

    Step 3 — Configuring Elastic :

    $ sudo nano /etc/elasticsearch/elasticsearch.yml

    node.name: "My First Node" cluster.name: mycluster1

    $ sudo service elasticsearch start 

    Step 4 — Securing Elastic :

    $ sudo nano /etc/elasticsearch/elasticsearch.yml 

    network.bind_host: localhost

    script.disable_dynamic: true

    Step 5 — Testing :

    $ curl -X GET 'http://localhost:9200' or run http://localhost:9200 in any browser. 

    You should see the following response:

    { 
    "status" : 200,
    "name" : "Harry Leland",
    "cluster_name" : "elasticsearch",
    "version" : {
    "number" : "1.7.2",
    "build_hash" : "e43676b1385b8125d647f593f7202acbd816e8ec",
    "build_timestamp" : "2015-09-14T09:49:53Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
    },
    "tagline" : "You Know, for Search"
    }

    Refrence By:

    http://laravelcode.com/post/how-to-install-elastic-search-in-local-system-and-live-server

提交回复
热议问题