The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Elasticsearch installation

Discussion in 'General Discussion' started by Nirjonadda, May 4, 2016.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    151
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    How to Elasticsearch installation on CENTOS 6.7 for cPanel ?
     
  2. Jason Parms

    Jason Parms Registered

    Joined:
    Sep 16, 2015
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hope these articles will help you to install Elasticsearch:

    elastic.co/guide/en/elasticsearch/client/curator/current/installation.html
    tecadmin.net/install-elasticsearch-on-linux/
     
    #2 Jason Parms, May 5, 2016
    Last edited by a moderator: May 5, 2016
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    151
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner

    I am still cannot install. Please let me know the other steps?
     
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    151
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Does Elasticsearch work with ConfigServer Security & Firewall? On my hand Elasticsearch work if Disabled ConfigServer Security & Firewall but i Allow incoming TCP ports 9200,9300 but still are not work.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please keep in mind this is not a supported application. You may need to consult with the documentation of the application, or with a qualified system administrator for installation assistance.

    Thank you.
     
    Nirjonadda likes this.
  7. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    151
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    I have fixed this issue on here: Elasticsearch Installation/Update on CENTOS 6 (cPanel)
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  9. ayman qaidi

    ayman qaidi Registered

    Joined:
    May 13, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    earth
    cPanel Access Level:
    Root Administrator
    use this script to do it . save it as .sh and run

    Code:
    #!/bin/bash
    
    clear
    
    echo "running"
    rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
    content = "
    [elasticsearch-1.4]
    name=Elasticsearch repository for 1.4.x packages
    baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
    gpgcheck=1
    gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
    enabled=1"
    
    echo $content >> /etc/yum.repos.d/elasticsearch.repo
    
    yum -y install elasticsearch
    
    # open port 9200 (for http) and 9300 (for tcp)
    sudo iptables -L -n
    iptables -A INPUT -p tcp -m tcp --dport 9200 -j ACCEPT
    iptables -A INPUT -p tcp -m tcp --dport 9300 -j ACCEPT
    service iptables save
    
    chkconfig elasticsearch on
    
    # set min max memory variables
    export ES_MIN_MEM=5G
    export ES_MAX_MEM=5G
    
    # restart server
    service elasticsearch restart
    script from my own project
     
Loading...

Share This Page