简体   繁体   English

托管从开发到生产的Wordpress网站

[英]hosting a wordpress site from dev to production

我的服务器上托管了一个WordPress网站www.domain.com,并且正在子域www.subdomain.domain.com/wordpress/中构建该网站的另一个版本,我想用第二个替换第一个版本,我字体知道该怎么做并替换数据库。

There are many ways to do this. 有很多方法可以做到这一点。

I think the easiest is this: 我认为最简单的是:

Install the plugin Duplicator on your new site (in dev environment) and create a back-up (with duplicator). 在您的新站点上(开发环境中)安装插件Duplicator ,并创建备份(使用duplicator)。

Prepare the new location: 准备新位置:

  • back-up and remove any excisting site content. 备份并删除任何现有的网站内容。
  • back-up(if needed) and completely empty the new database (or create a new DB). 备份(如果需要)并完全清空新数据库(或创建一个新的数据库)。

Upload the duplicator backup files (there are 2 files: .zip & .php) to the new location. 将复制器备份文件(有2个文件:.zip和.php)上载到新位置。

Go to: example.com/installer.php. 转到:example.com/installer.php。

You will then see a duplicator back-up/migration install screen, follow the steps. 然后,您将看到复制器备份/迁移安装屏幕,请按照以下步骤操作。 Because you're changing the domain, you'll have to update the database with the new domain, duplicator can do this for you. 因为要更改域,所以必须使用新域更新数据库,复制器可以为您完成此操作。 Carefully follow each step and read everything. 认真执行每个步骤,并阅读所有内容。

Google it, if you're not sure about something, duplicator is widely used. 谷歌它,如果您不确定某件事,则复制器被广泛使用。

I found a step by step post here , but it's from 2015 and may be a bit outdated. 我在这里找到了分步发布的信息 ,但这是从2015年开始的,可能有点过时了。

Regards, Bjorn 问候,比约恩

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM