亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

使用命令行刷新Magento索引管理 Rebuilt Magent

系統 2313 0
magento索引管理

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刷新索引管理

?

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


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 精品国产福利 | 日韩欧美在线免费观看 | 手机看片国产免费久久网 | 91国内精品久久久久怡红院 | 国产精品自在线拍 | 天天拍夜夜添久久精品中文 | 日韩美视频网站 | 天天干亚洲 | 在线观看欧美亚洲日本专区 | 久久精品国产精品国产精品污 | 久久久网久久久久合久久久久 | 老司机免费福利视频无毒午夜 | 国产亚洲男人的天堂在线观看 | 中文字幕不卡免费高清视频 | 亚洲欧美日韩国产精品网 | 福利视频在线观看午夜 | 伊人免费视频二 | 久久草在线视频免费 | 日本免费一区二区三区毛片 | 日韩精品亚洲精品485页 | 亚洲国产综合精品中文第一区 | 日本大黄视频 | 免费观看成人久久网免费观看 | 一级做a爰片性色毛片2021 | 国产色综合天天综合网 | 国产亚洲精品一区二区在线观看 | 麻豆视频一区 | 午夜精品久久久久久久第一页 | 青春禁区视频在线观看动漫版 | 性欧美video另类hd亚洲人 | 成人亚洲精品一区二区 | 手机看片欧美日韩 | 久草国产在线观看 | 五月婷婷开心中文字幕 | 波多野结衣手机视频一区 | 一级做a毛片免费视频 | 狠狠干夜夜骑 | 日韩欧美在线观看成人 | 免费黄色的视频 | 成人日韩在线 | 777777农村一级毛片 |