I am getting below error while installing Magento 2.4.0 using command line.
Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
I have run below two commands.
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition magento240
php -dmemory_limit=-1 bin/magento setup:install
--base-url="http://127.0.0.1/magento240"
--db-host="localhost"
--db-name="magento240"
--db-user="root"
--db-password="root123"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="[email protected]"
--admin-user="admin"
--admin-password="admin123"
--language="en_US"
--currency="USD"
--timezone="America/Chicago"
--use-rewrites="1"
--backend-frontname="admin"
Also used below commands.
php -dmemory_limit=-1 bin/magento setup:install
--base-url="http://127.0.0.1/magento240"
--db-host="localhost"
--db-name="magento240"
--db-user="root"
--db-password="root123"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="[email protected]"
--admin-user="admin"
--admin-password="admin123"
--language="en_US"
--currency="USD"
--timezone="America/Chicago"
--use-rewrites="1"
--backend-frontname="admin"
--search-engine=mysql
php -dmemory_limit=-1 bin/magento setup:install
--base-url="http://127.0.0.1/magento240"
--db-host="localhost"
--db-name="magento240"
--db-user="root"
--db-password="root123"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="[email protected]"
--admin-user="admin"
--admin-password="admin123"
--language="en_US"
--currency="USD"
--timezone="America/Chicago"
--use-rewrites="1"
--backend-frontname="admin"
--elasticsearch-host=elasticsearch
--elasticsearch-username=elastic
--elasticsearch-password=changeme