skip to Main Content

I’m installing Magento 2 for the first time following this tutorial https://www.javatpoint.com/how-to-install-magento-2-using-composer. XAMPP is installed (with Apache and MySQL running), the database is setup on PHPMyAdmin, but when I try to run php bin/magento setup:install (step 23 in the tutorial) I get the error: Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

How can I fix this?

2

Answers


  1. Download Elastic Search first on your system –

    https://www.elastic.co/downloads/past-releases/elasticsearch-7-6-0

    After Downloading follow this step –

    • Extract the .zip file
    • Open Terminal or command prompt and go to the extracted path
    • run command .binelasticsearch.bat

    if this does not work just go to the extracted folder and opened the elasticsearch.bat file inside the bin folder.

    and the install Magento with setup: install command.

    Hope it helps!!

    Login or Signup to reply.
  2. Please run this Command in Terminal

    1. sudo service elasticsearch start
    2. And after run that command again run php bin/magento setup:install

    Hope Your issue will be solve.
    Thank you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search