如何给Magento安装打补丁

Magento的有漏洞爆出或者更新补丁发布后,官方会在系统后台System-Notifications给出提醒消息。 其中需要注意的是CRITICAL的,这种补丁是高危漏洞,用户一定要更新这个补丁,否则会给程序

Magento的有漏洞爆出或者更新补丁发布后,官方会在系统后台System-Notifications给出提醒消息。

如何给Magento安装打补丁

其中需要注意的是“CRITICAL”的,这种补丁是高危漏洞,用户一定要更新这个补丁,否则会给程序运行带来非常大的风险。

我们根据提示,来到官方网站https://www.magentocommerce.com/products/downloads/magento/,如果您不知道您程序是什么版本,请登录您的magento程序的后台,底部会显示版本号。

找到对应版本的补丁,登录账号,下载。

如何给Magento安装打补丁

下载后会得到一个以PATCH_SUPEE开头的sh文件,这是一个shell脚本。SHU88的Magento主机均提供空间的shell功能,因此请把补丁文件放到您的程序根目录(请注意是程序根目录,即跟index.php同一个目录),然后直接登录您空间的shell命令框(推荐您使用winscp和putty)。官方说明上也写的很清楚:

 

Please upload the patch into your Magento root directory and run the appropriate SSH command:

For patch files with the file extension .sh:

sh patch_file_name.sh

Example: sh PATCH_SUPEE-1868_CE_1.7.0.2_v1.sh

For patch files with the file extension .patch:

patch –p0 < patch_file_name.patch

Once that is done, refresh the cache in the Admin under "System > Cache Management" so that the changes will be reflected. We highly recommend you test all patches in a test environment before taking them live.

我这里下载的补丁是PATCH_SUPEE-5345_CE_1.7.0.2_v1-2015-02-10-08-11-22.sh,因为我的程序版本是1.7,使用shell执行这个脚本即可。

 

xxxx@xxx [~/public_html/demo]# sh PATCH_SUPEE-5345_CE_1.7.0.2_v1-2015-02-10-08-11-22.sh

Checking if patch can be applied/reverted successfully...

Patch was applied/reverted successfully.
我们看到反馈补丁成功。

此外您可以同时关注下官方的检查地址:http://magento.com/security-patch,来检查您的程序是否有安全漏洞。

转载于:https://my.oschina.net/ganfanghua/blog/993941

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值