I got this example command from the guide (tutorial) - https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli.html#install-cli-example
bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \
--db-host=localhost --db-name=magento --db-user=magento --db-password=magento \
--admin-firstname=Magento --admin-lastname=User [email protected] \
--admin-user=admin --admin-password=admin123 --language=en_US \
--currency=USD --timezone=America/Chicago --use-rewrites=1 \
--search-engine=elasticsearch7 --elasticsearch-host=es-host.example.com \
--elasticsearch-port=9200
I also have elasticsearch running.
But I have a doubt that host.example.com should be something good value(I am trying to install magento on localhost ) is it correct or not, if i copy paste the above command and run..
This below line elasticsearch-host=es-host.example.com should be elasticsearch-host=es-host.localhost.com .
I don't know if I am right or wrong, but please help me in proceeding further, any help will be great help.
--search-engine,--elasticsearch-host&--elasticsearch-portand check your Elastic Search configuration in Stores -> Settings -> Configuration -> Catalog -> Catalog -> Catalog Search -> Test Configuration ? works for me but not tested locally