magento索引管理
当我们网站商品很多的时候,比如有几千件,我们刷新Magento的索引管理(Index Management)经常会失败。那么后台刷新不了,我们还可以通过命令行来刷新。使用命令行来刷新索引管理会极大降低系统消耗,容易成功。
我们来看下步骤,如果你在使用linux服务器,登入你的ssh客户端,切换目录到你magento根文件夹中名字是shell的文件中。
在此文件夹中输入如下命令
php -f indexer.php -- -reindex catalog_url
它的意思是刷新Catalog Url Rewrites即网址重写。成功后会有成功提示,如:Catalog URL Rewrites index was rebuilt successfully
magento使用Shell刷新索引管理
我们来看下有哪些索引管理,可以使用Shell的命令行来刷新,如下
1
2
3
4
5
6
7
8
|
catalog_product_attribute Product Attributes
catalog_product_price Product Prices
catalog_url Catalog Url Rewrites
catalog_product_flat Product Flat Data
catalog_category_flat Category Flat Data
catalog_category_product Category Products
catalogsearch_fulltext Catalog Search Index
cataloginventory_stock Stock status
|
如上分别对应后每项台的索引管理。
命令执行后需要耐心等待一段时间,因你商品数量和你服务器性能决定等待多久。注意命令中reinde前一共是三个英文横线。如有代码错误提示,直接黏贴本文的命令或者
如下参考文章的命令,直接修改执行参数即可。
来源: http://www.hellokeykey.com/magento-shell-reindex-index-management/
参考文章:http://inchoo.net/ecommerce/magento/executing-magento-indexer-from-shell/
Rebuilt Magento Indexes in terminal with php-cli
For
the past 6 months, had been doing a lot of work with Magento. I’ve
notice that the more I know the whole thing, the more I don’t want to
share about it. Well, I still like to share some things though… so now
it’s time to give some tips/tricks…
In your terminal do:
cd /magento/shop/path/shell/
where “/magento/shop/path” is your magento rooth path. For e.g. (in live terminal)
user:~$ cd /home/cliper/magento/shell/
after that, you can run the indexer by doing:
php indexer.php reindex all
that will re-index all available indexes in magento.
Well, you can always run it in one command like:
php /home/cliper/magento/shell/indexer.php reindex all
For help on how to use the indexer and available arguments do:
php indexer.php
For a list of available indexes do:
php indexer.php info
and you should be able to see a list of indexes something like this:
catalog_product_attribute Product Attributes
catalog_product_price Product Prices
... ...
分享到:
相关推荐
13. index 管理 【索引】--------------------------------Magento-9.12索引管理 14. 管理商店----------------------------------------------Magento-9.14商店管理 15. 设置-------------------------------------...
从管理员重新索引 Magento 2对于 Magento 2.0.x、2.1.x、2.2.x 和 2.3.x 从 Magento 的管理员重新索引您的 Magento 2 商店已被删除,您唯一的选择是将您的索引设置为“保存时更新”或使用 SSH/CLI 命令行重新索引,...
Magento-中文开发教程, 欢迎大家指出错误。 深入理解Magento-第一章 – Magento强大的配置系统 深入理解Magento-第二章 – Magento请求分发与控制器 深入理解Magento-第三章 – 布局,块和模板 深入理解...
快速开始cp composer.env.sample composer.env# ..put the correct tokens into composer.envmkdir magentodocker-compose run cli magento-installerdocker-compose up -ddocker-compose restart组态配置是通过环境...
如果你正在创建一个Magento的管理模块(学习创造Magento管理模块),那么你一定会被要求创建一个管理列表既Grid。创建列表,Magento新手程序员有点困难,但在本教程中,我们将创建一个网格在管理模块中最简单的方式...
该扩展程序有助于从admin重新编制数据索引,而无需执行命令行(CLI)。 特征: 便于使用 来自管理员的简单重新索引数据 快速索引 安装 运行以下命令: composer require webshouters/magento2-reindex bin/magento...
Ajax-magento2-catalog-infinite-scroll.zip,免费的Magento 2扩展,为目录添加无限滚动功能(通过AJAX实现)编码教程,ajax代表异步javascript和xml。它是多种web技术的集合,包括html、css、json、xml和javascript。...
magento用户使用手册
magento用户中文操作手册,学习magento后台管理
用于Magento 2的netz98 magerun CLI工具n98 magerun cli工具提供了一些方便的工具,可从命令行使用Magento。建立状态最新发布的 发展处 开发在开发分支中完成。 该软件仅与Magento 2一起运行。 如果您使用Magento 1...
magento的SMTP插件magento的SMTP插件magento的SMTP插件
magento-ce-2.4.0-2020-07-24-11-15-38.tar.gz 不带sample data
因为国外网速太慢了,所以下载后分享给需要的人。magento-ce-2.4.2-p1-2021-04-22-10-49-09
Magento 后台管理插件示例! 注:USDP为命令空间
Turiknox URL重写导入器概述一个简单的Magento模块,将允许您使用CSV文件将自定义URL重写导入管理员。要求Magento 2.1.x安装n 将模块的内容复制到您的Magento根目录中。 通过命令行启用模块: / path / to / php bin...
magento-1.9.1.1-2015-04-30-12-49-08 源代码包
如何给产品描述里的关键字、字词批量添加链接?我想大家一直在的这样的插件。...说明请查看:http://www.hicoogle.com/magento-gei-chan-pin-miao-shu-guan-jian-zi-pi-liang-lian-jie-cha-jian.html
He is the Chief Operating Officer of Wagento, a full-service Magento Solution Partner with offices in USA, Mexico, Bolivia, India, and Argentina. He is also a moderator in Magento forums, and he is a...
magento2-blog-module-tutorial, 关于如何从头开始创建 magento 2模块的教程,带有测试 2博客模块教程这个模块是 WIP,它将被更新为每个教程我目前正在写。介绍如何从头创建完整功能的Magento 2模块。 即使有测试,...
经典magento php 开发指南,各方面都有覆盖,适合backend developer或者是初学者