如何修复一个或多个索引器是Magento中的无效错误? [英] How to fix one or more indexers are invalid error in Magento?
问题描述
很抱歉,我的问题是非常基本还是简单的问题.但是我想从昨天开始解决这个问题.我希望我的问题也与此问题类似.
Sorry if my question was very basic or simple one. But i m trying to fix this issue from yesterday. i hope my problem also similar to this question.
我从昨天开始在谷歌上搜索,这就是我在每个论坛和搜索结果中得到的答案.
i m googling since yesterday and this is what the answer i got in every forums and search result.
php bin/magento indexer:reindex
但是当我在Windows 7中的cmd.exe中尝试此操作时,这就是我遇到的错误.
but when i tried this in cmd.exe in Windows 7 this is what error i m getting.
我对Windows命令提示符&不熟悉magento,曾经在Ubuntu终端上工作.因此,如果我的问题非常简单或愚蠢,请再次表示抱歉,但请帮助我解决此问题.
i m not familiar with windows command prompt & magento, used to work on Ubuntu terminal. So please again sorry if my question is very basic or stupid but please help me to solve this issue.
请在下面检查magento仪表板错误:
please check magento dashboard error below :
对我的英语不好也很抱歉
sorry for my bad English too
推荐答案
被称为PHP CLI(用于命令行界面的php)称为php.exe.它位于c:\wamp\bin\php\php5.x.y\php.exe
中(其中x和y是版本)已安装的php数)
The PHP CLI as its called ( php for the Command Line Interface ) is called php.exe It lives in c:\wamp\bin\php\php5.x.y\php.exe
( where x and y are the version numbers of php that you have installed )
如果您想创建从命令行运行的php scrip,那么它非常简单且非常有用.
If you want to create php scrips to run from the command line then great its easy and very useful.
像这样创建一个批处理文件,将其命名为phppath.cmd:
Create yourself a batch file like this, lets call it phppath.cmd :
PATH=%PATH%;c:\wamp\bin\php\php5.x.y
php -v
将其保存到PATH中已经存在的一个文件夹中,以便可以从任何位置运行它.
Save this into one of your folders that is already on your PATH, so you can run it from anywhere.
现在从命令窗口中,将CD插入源文件夹并运行> phppath.
Now from a command window, cd into your source folder and run >phppath.
然后运行
php bin/magento indexer:reindex
它应该像梦一样工作.
这篇关于如何修复一个或多个索引器是Magento中的无效错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!