EC2文件复制到本地 [英] Copy ec2 files to local

查看:164
本文介绍了EC2文件复制到本地的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个实时的Magento网站的本地副本,这样我就可以测试和在我的本地版本的开发。

I would like to create a local copy of a live Magento website, so that I can test and develop on my local version.

我做了以下至今:

  • 在安装了XAMPP的Mac OS X 1.7.3;
  • 创建一个空数据库;
  • 在安装了MySQL工作台6.0的Mac;
  • 在试图通过SSH按照此方案,连接到AWS EC2和RDS实例<一href="http://thoughtsandideas.word$p$pss.com/2012/05/17/monitoring-and-managing-amazon-rds-databases-using-mysql-workbench/" rel="nofollow">http://thoughtsandideas.word$p$pss.com/2012/05/17/monitoring-and-managing-amazon-rds-databases-using-mysql-workbench/;
  • ,但我无法连接(它说,身份验证失败,但证书是正确的)。
  • installed XAMPP for Mac OS X 1.7.3;
  • created a blank database;
  • installed MySQL Workbench 6.0 for Mac;
  • tried to connect to AWS EC2 and RDS instances via SSH following this scheme http://thoughtsandideas.wordpress.com/2012/05/17/monitoring-and-managing-amazon-rds-databases-using-mysql-workbench/;
  • but I can't connect (it says authentication failed but credentials are correct).

也许有一个简单的方法来打造我在EC2上的文件和RDS的副本,并在本地运行呢?或者,也许我只是失去了一些东西?

Maybe there's a simpler way to create a copy of my files on EC2 and RDS and run them locally?Or maybe am I just missing something?

感谢您

推荐答案

这是是,你必须休耕在本地PC上建立一个开发网站的步骤

This is are the steps that you have to fallow to create a development site in your local pc

  1. 邮编所有的Magento的文件

  1. Zip all the magento files

压缩-r magento.zip /无功/网络/

zip -r magento.zip /var/www/

请在RDB的转储

mysqldump的-u用户名-p [数据库名称] -h RBS-端点> dumpfilename.sql

mysqldump -u username -p [database_name] -h rbs-Endpoint > dumpfilename.sql

文件下载到本地计算机

使用SFTP下载的所有文件,并检查安全组 确保SSH端口是开放的。

Use sftp to download all the files and check the security groups to make sure the ssh port is open

导入RDB为您创建本地数据库

Import the RDB to the database that you create locally

在恢复数据库请选中该<一href="http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/restoring_a_backup_of_a_magento_database" rel="nofollow">http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/restoring_a_backup_of_a_magento_database

的mysql -u用户名-p [数据库名称] LT; dumpfilename.sql

mysql -u username –p [database_name] < dumpfilename.sql

解压缩在你的电脑中的文件移动到你的本地网络服务器

Unzip the files in your pc and move to your local webserver

更​​改网站的网址<一href="http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/update_site_url_in_core_config_data" rel="nofollow">http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/update_site_url_in_core_config_data或 http://www.magentocommerce.com/wiki/recover/restore_base_url_settings

Change the site url http://www.magentocommerce.com/wiki/1_-_installation_and_configuration/update_site_url_in_core_config_data or http://www.magentocommerce.com/wiki/recover/restore_base_url_settings

更​​新Magento的那个local.xml与您当地的数据库访问凭证

Update the magento local.xml with your local database access credential

清洁的Magento缓存

Clean the magento cache

不过,我的建议是在亚马逊的AWS EC2另一个创建开发的网站

BUT, My recommendation is to create a development site in another EC2 in Amazon AWS

这篇关于EC2文件复制到本地的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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