Magento 2 Migration : Could not validate a connection to Elasticsearch. No alive nodes found in your cluster

Magento 2 Migration Error

#Start elastic on the server
sudo -i service elasticsearch start

If Elasticsearch is not installed, then install it the following way –

#use the following. If you are using default php then just use php instead of “/www/server/php/74/bin/php“.
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:upgrade
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento cache:clean
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento indexer:reindex
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:static-content:deploy
/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:static-content:deploy -f

/www/server/php/74/bin/php -d memory_limit=-1 bin/magento setup:static-content:deploy en_US en_CA -f