The product does not appear on the Magento 2 subcategory

請在命令行中運行以下命令: php bin/magento indexer:status 如果其中一個索引是“Processing”,那麼轉到MySQL數據庫並轉到indexer_state表。您會注意到其中一個值為“Working”,其餘值為“Valid” 將工作設置為無效並再次重新編制索引。執行此操作的最佳方法是運行以下查詢: update magento.indexer_state set status=’invalid’ where status =’working’