Magento – How to fix One or more indexers are invalid. Make sure your Magento cron job is running

linuxmagento2

I am new to magento platform and I have installed magento on a shared linux server and when I logged into my admin panel I saw this message and I don't know how to set cron jobs on my linux server.

Best Answer

You using terminal and enter command bin/magento indexer:reindex. This command create new index of magento in your database.

You can read more about setup cron job in Magento2 at http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html