AWS China Region试用的问题列表
2015-04-30 14:30
281 查看
在AWS上的使用经验已经有四年了,现在开始亚马逊中国的服务,发现有很多不同。在此记录一下遇到的各种问题和解决方案,与大家共同讨论。
问题1. sudo: unable to resolve host <NAME>
登录主机使用sudo命令,遇到如下提示:
ubuntu@ip-192-168-0-42:~/micro-deploy$ sudo su
sudo: unable to resolve host ip-192-168-0-42
解决方法:
That the
contains just the name of the machine.
That
an entry for
It should have something like:
问题2. 应对GFW
在中国区使用EC2,完全在美国等其它region上那种访问网络不是问题的感觉,首先遇到的就是GFW。
解决方法1:使用代理工具
如果你有美国的服务器,可以自己设置代理,可以使用工具tsocks和proxychains
解决方法2:使用中国区镜像
比如,我安装ruby工具,使用了淘宝镜像,详见淘宝ruby镜像用法。
问题3. 迁移大数据到AWS
当我们准备迁移大数据到AWS的时候,对于数据量比较大的情况下,需要采用一些加速的方法缩短这个迁移的时间,可用方法如下:
解决方法1:使用AWS的import/export服务
最快,详见AWS手册
解决方法2:使用AWS的Storage Gateway
解决方法3:使用传统SCP,RCP
此时注意采用一些优化的方法加速,详见加快SCP传输
解决方法4:采用专业的UDP网络传输工具
可参考 Moving
Big Data into the Cloud with Tsunami UDP
其它工具参见:https://github.com/mindreframer/file-transfer-accelerators
另外,无论使用哪种方法,注意不要试图远距离传输超过1G的大文件,建议使用split或其它工具做二进制拆分,
[参考]
问题1. sudo: unable to resolve host <NAME>
登录主机使用sudo命令,遇到如下提示:
ubuntu@ip-192-168-0-42:~/micro-deploy$ sudo su
sudo: unable to resolve host ip-192-168-0-42
解决方法:
That the
/etc/hostnamefile
contains just the name of the machine.
That
/etc/hostshas
an entry for
localhost.
It should have something like:
127.0.0.1 localhost.localdomain localhost 127.0.1.1 my-machine
问题2. 应对GFW
在中国区使用EC2,完全在美国等其它region上那种访问网络不是问题的感觉,首先遇到的就是GFW。
解决方法1:使用代理工具
如果你有美国的服务器,可以自己设置代理,可以使用工具tsocks和proxychains
解决方法2:使用中国区镜像
比如,我安装ruby工具,使用了淘宝镜像,详见淘宝ruby镜像用法。
问题3. 迁移大数据到AWS
当我们准备迁移大数据到AWS的时候,对于数据量比较大的情况下,需要采用一些加速的方法缩短这个迁移的时间,可用方法如下:
解决方法1:使用AWS的import/export服务
最快,详见AWS手册
解决方法2:使用AWS的Storage Gateway
解决方法3:使用传统SCP,RCP
此时注意采用一些优化的方法加速,详见加快SCP传输
解决方法4:采用专业的UDP网络传输工具
可参考 Moving
Big Data into the Cloud with Tsunami UDP
其它工具参见:https://github.com/mindreframer/file-transfer-accelerators
另外,无论使用哪种方法,注意不要试图远距离传输超过1G的大文件,建议使用split或其它工具做二进制拆分,
[参考]
https://github.com/mindreframer/file-transfer-accelerators https://code.google.com/p/s3fs/wiki/FuseOverAmazon http://filecatalyst.com/open-source-fast-file-transfers/ http://www.vadzi.com/tools/udp-file-transfer/ http://blog.csdn.net/awschina/article/details/38661889?utm_source=tuicool http://www.cnblogs.com/buptduming/archive/2010/07/07/1772005.html https://www.evl.uic.edu/cavern/RBUDP/Reliable%20Blast%20UDP.html http://filecatalyst.com/open-source-fast-file-transfers/ http://jos.org.cn/ch/reader/create_pdf.aspx?file_no=3812&journal_id=jos http://herofit.blogspot.com/2006/10/linux_10.html http://blog.csdn.net/dba_waterbin/article/details/27339235 Blazing fast SFTP/SSH transfer https://spoutcraft.org/threads/blazing-fast-sftp-ssh-transfer.7682/ http://itindex.net/detail/46367-%E5%8A%A0%E9%80%9F-scp-%E4%BC%A0%E8%BE%93
相关文章推荐
- CloudFoundry AWS China Region安装
- AWS API网关Region的问题
- 怎样解决dedecms模板制作中列表分页问题?
- cordova(ios) - 问题解决列表(一)
- 近5年133个Java面试问题列表
- aws上面dcoc测试的一个问题
- 近5年133个Java面试问题列表
- Subversion简单常用问题解决方案列表
- VC中Combo Box下拉列表不显示数据的问题
- Java Mail无法解析带分号的收件人列表的问题
- Js与下拉列表处理问题解决
- java学习笔记,试用初学者,第二节,关于内存地址分配问题
- 函数调用缺少参数列表;请使用“&Student::Printf”创建指向成员的指针 问题解析
- 问题列表
- 邮件列表正在讨论QQ的架构问题
- 关于SAP的RFC一些问题列表
- AWS IoT 常见问题
- 深入列表遍历问题,并分析spring和tomcat中观察者模式的实现
- 关于下拉列表问题
- 软件工程课程设计问题总结——医院门诊系统(四):后台获取下拉列表的值并在页面中显示