将magento网站从一台服务器移动到另一台服务器 [英] Moving magento site from one server to another server

查看:58
本文介绍了将magento网站从一台服务器移动到另一台服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Magento站点版本

i have a magento site version 1.4.1.1.

我将网站升级到了1.7.0.2.

现在想将升级的magento移至另一台服务器.

Now want to move the upgraded magento into another server .

我该怎么做?

i planed to do this by downloading all files and upload it into new server.and import the database into the same databsae name.

如果存在任何问题,当我按照上述步骤进行.

If there is any problem occur when i following the above steps.

或者是否存在将magento网站从一台服务器移至另一台服务器的规则?

Or if there is any rules to move magento site from one server to another server?

推荐答案

如果您的站点未公开,则只需移动文件和db并在db上修复base_urls.

If your sites are not publick then just move the files and db and fix base_urls on db.

如果您的网站是在线的,那么在移动的网站上需要注意一两件事:

If your site is live then here's a thing or two to note down on moving sites:

CODE:

这很简单,可以将静态资产预先移动到新服务器

this is straightforward, static assets can be moved beforehand to new server

  • 使用rsync或版本控制,甚至使用简单的旧ftp都足够容易地执行
  • 验证文件结构和权限

数据库:

这更加复杂,因为您必须避免在切换站点数据库后在旧服务器数据库上获得更多订单的缺口,您需要在移动数据库时关闭我们的站点

this is more complicated as you have to avoid the gap of getting more orders on old server database after you have switched to move your site database you need to take our site down for the time you move your database

  • 第一步数据库移动到新的服务器进行测试,测试如果一切正常
  • 不对您需要运行的所有查询进行查询,以使其在新服务器上运行(基本url等)
  • 关闭网站并打开另一个网站时,请重复此过程

代码和数据库的过程:

  • 在旧页面上添加带有正确的http标头的维护页面
  • 站点关闭时,将数据库移至新服务器
  • 打开你的新网站,并做验证短期内,如果所有的作品
  • 下一步是将域更改为指向新服务器

移动域

再次移动域有些棘手,因为可能发生DNS中断,一些客户端将看到旧站点,而另一些客户端则看到新站点.

again moving domains is a bit tricky thing as there is a possible DNS blackout that some clients will see the old site and some are seeing the new.

  • 更改您的域规则以指向新服务器
  • 未更改DNS的客户将看到维护页面
  • 拥有新DNS的客户端将最终移至移动的站点

这种方式可以确保你不会得到两个站点上的订单.如果您的域完全更改,那么您还需要将URL重新映射到每个搜索引擎的新域

this way you can ensure that you will not get orders on both sites. If your domain-changes completely then you also need to remap your URLS to new domains for every search engine

这篇关于将magento网站从一台服务器移动到另一台服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆