如题,我在使用diahosting的vps是遇到ftp的问题,详细情况:
在给VPS安装了CentOS5.4后,为方便管理我按照了kloxo控制面板。都设置好后,绑定域名后自动生成了一个ftp账号,这一切都很正常,测试网站也能看到首页。所以决定转移网站到VPS上。因为我使用的都是国外Linux空间,所以备份和转移网站使用ssh来操作非常方便。
于是,我在原来的lunarpages的虚拟主机上将网站打包备份成zip格式文件,然后ssh登录vps直接使用wget命令将网站备份从lp的主机上下载到我的vps上,再通过unzip命令解压缩网站备份。这些都很顺利,问题出在下面。
当我用自动生成的ftp账号通过FlashFXP更改wp-config.php这个文件中的数据库等信息时,修改了信息上传时一点反应也没有。于是我测试通过ftp来修改文件和文件夹的属性,例如将文件属性644改为777,结果都无效。我想能登录ftp,说明我的ftp账号密码以及访问权限也没有问题。经过反复试验,我做了如下推测:
1.FlashFXP设置错误导致所有修改失效;
2.kloxo控制面板自动生成的ftp账号的问题;
3.CentOS5.4的系统设置问题,ftp账号的访问权限设置错误。
那么到底问题出在哪里呢?
Tag Archives: ftp
lunarpages的ftp上传下载速度过慢的解决过程
11月初使用Lunarpages的空间,半个月来,速度一直很快。下载速度能达到120K/S,上传也能达到60K/S,但是从11月18日开始,开始就不稳定。下载文件时初始速度可以达到120K/S以上,但是马上就快速下降到10K/S左右。FTP的速度也是如此,先快后慢。而且慢得无法忍受。于是发帖询问过:
http://www.idcspy.com/bbs/thread-13235-1-2.html
自己也从几个方面进行了测试。自己的ping值如下:
Reply from 67.210.98.5: bytes=32 time=225ms TTL=51
Reply from 67.210.98.5: bytes=32 time=226ms TTL=51
Reply from 67.210.98.5: bytes=32 time=226ms TTL=51
Reply from 67.210.98.5: bytes=32 time=225ms TTL=51
Ping statistics for 67.210.98.5:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 225ms, Maximum = 226ms, Average = 225ms
请朋友帮测试的
Pinging 67.210.98.5 with 32 bytes of data:
Reply from 67.210.98.5: bytes=32 time=261ms TTL=47
Reply from 67.210.98.5: bytes=32 time=306ms TTL=47
Reply from 67.210.98.5: bytes=32 time=258ms TTL=47
Reply from 67.210.98.5: bytes=32 time=250ms TTL=47
Reply from 67.210.98.5: bytes=32 time=340ms TTL=47
Reply from 67.210.98.5: bytes=32 time=253ms TTL=47
Reply from 67.210.98.5: bytes=32 time=321ms TTL=47
Reply from 67.210.98.5: bytes=32 time=345ms TTL=47
Reply from 67.210.98.5: bytes=32 time=265ms TTL=47
Reply from 67.210.98.5: bytes=32 time=256ms TTL=47
Reply from 67.210.98.5: bytes=32 time=280ms TTL=47
Reply from 67.210.98.5: bytes=32 time=307ms TTL=47
Reply from 67.210.98.5: bytes=32 time=334ms TTL=47
Reply from 67.210.98.5: bytes=32 time=256ms TTL=47
Reply from 67.210.98.5: bytes=32 time=261ms TTL=47
Ping statistics for 67.210.98.5:
Packets: Sent = 15, Received = 15, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 250ms, Maximum = 345ms, Average = 286ms
这样看来IP应该没有问题,没有被封;
然后我把FTP都改成被动模式,也是很慢,情况没有得到改观;
用Dreamhost空间SSH远程FTP连接测试一下,速度很快
3MB的文件一秒钟 get完成 (如下图点击放大查看) (3354.8 kB/s)
朋友说绝对不是LP的网络问题
可能是我自己或ISP出口带宽问题
于是我的tracert数据如下图
这样看来,我的路由没有什么问题。接下来,我就发邮件联系lunarpages的客服;
lunarpages的回复,我提供了所在地理位置、IP地址、TRACERT数据、ISP等信息后,他们回复如下Hi,
Thank you for providing that tracert. looking at it I do see that there is some latency that begins with the 202.97.51.74 IP address.
http://www.dnsstuff.com/tools/whois.ch?ip=202.97.51.74
You may want to check with your ISP and see if they have been having any connectivity issues providing a copy of this tracert to them for review as well.
I hope this is helpful.
