使用命令行刷新Magento索引管理 Rebuilt Magento Indexes in terminal with php-cli
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 ... ...
使用命令行刷新Magento索引管理 Rebuilt Magento Indexes in terminal with php-cli相关推荐
- 使用 CUPS 命令行实用程序设置和管理打印机
使用 CUPS 命令行实用程序设置和管理打印机 本节提供 CUPS 命令的简介并介绍如何设置和管理打印机. CUPS 命令行实用程序 CUPS 提供用于设置打印机以及使网络中的系统可以访问这些打印机的 ...
- 命令行刷新Magento索引管理
当网站商品很多的时候,比如有几千件,我们刷新Magento的索引管理(Index Management)很慢,而且经常会失败.那么后台刷新不了,我们还可以通过命令行来刷新.使用命令行来刷新索引管理会极 ...
- 如何用命令行刷新,启用,禁用Magento2的缓存
当你使用Magento商店时如何刷新Magento 2中的Cache命令行是基本的常用操作.Magento 2默认有12种缓存类型.在命令行中有5个简单的命令来管理缓存.在这篇文章中,我将逐步向您展示 ...
- Kubernetes:基于命令行终端UI的管理工具 K9s
写在前面 K9s 是一个基于终端UI的 K8S 管理工具 博文内容为 k9s 在 windows.Linux 以及docker 安装Demo 简单的 热键使用. 理解不足小伙伴帮忙指正 我所渴求的,無 ...
- VirtualBox命令行VBoxManage创建与管理虚拟机教程
VBoxManage is the command-line interface to VirtualBox. 前言 本文要操作的虚拟机信息如下:名称: UbuntuRDHome镜像名称: ubunt ...
- Windows命令行下的进程管理
相信大家都有用命令行(CMD)解决问题的习惯,起码我感觉自己在处理Windows系统故障时越来越离不开Windows PE了,今天我想介绍两个很实用的命令:Tasklist与Tskill. 命令:Ta ...
- 命令行基础 挂载 文件目录管理 vim编辑器
Top NSD ADMIN DAY03 案例1:命令行基础技巧 案例2:挂载并访问光盘设备 案例3:ls列表及文档创建 案例4:复制.删除.移动 1 案例1:命令行基础技巧 1.1 问题 本例要求掌握 ...
- 在终端/命令行下打开文件浏览器窗口--Win cmd Ubuntu terminal
在命令行下想要可视化查看文件,可以使用命令直接打开图形化窗口 1. Windows windows上可以使用explorer.exe打开资源管理器: explorer.exe . #.表示打开当前所在 ...
- linux l7filter命令行,iptables--L7-filter实现高级管理
l7-filter是一个定义在应用层上的来过滤数据包的.它可以按照不同的应用进行过滤,比如过滤聊天工具QQ.MSN.eDonkey等应用. 接下来讲述l7-filter的编译安装和使用: 1.准备工作 ...
最新文章
- OpenGL 分层渲染Layered Rendering的实例
- docker使用问题总结
- (转) OpenLayers3基础教程——加载资源
- 中南大学计算机网.doc,中南大学计算机网络习题2014-2.doc
- 大规模文本分类实验-项目日志
- 【Redis监控工具之treeNMS 】
- 易语言单窗口单ip软件源码_想要挣钱创收 那就用脚本操作手机群控软件啊
- iis服务器安装帝国网站,安装帝国cms如何配置iis
- K线技术指标实现—同花顺多空趋势点
- git 删除远程的tag
- 阿里云SMS短信服务的使用
- Convex Optimization-chapter1
- 检测网页是否打开开发者工具(检测F12)
- 破解验证码(2)滑动验证码
- 机器人状态估计一之两大方程知多少
- 最大后验估计(MAP)------贝叶斯学派的法宝
- YTU 2325 查找【数组】
- 山东省教育厅关于原民办代课教师调…
- 关于antd table组件中,数据渲染条数跟后台传入数据不一致的问题
- Coursera机器学习(Andrew Ng)笔记:无监督学习与维度约减
热门文章
- linux jobs继续运行,Linux jobs等前后台运行命令详解
- 如何在ubuntu上用c++串口通信_让你搞懂PLC串口通讯和通讯接口,这东西估计没几个能说清楚~...
- 安卓系统分屏相关修改思路
- MATLAB实现BP神经网络预测汽油辛烷值
- 某微型计算机指令格式如图,组成原理考试试卷
- STM32那点事(2)_时钟树(上)
- GAN + Video Inpainting的一些思考和相关论文
- transform中的token理解(单词或词语的标记)
- 【PyTorch】lr_scheduler.StepLR==>调整学习率的方法
- jsp数据 foreach 循环遍历 (含效果图)- 代码篇