EC2文件复制到本地文件

2023-09-11 23:46:09 作者:搂着迩妈去蹦迪

我想创建一个实时的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实例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

邮编所有的Magento的文件

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

在恢复数据库请选中该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

更​​改网站的网址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

 
精彩推荐
图片推荐