简单快捷的方式从vps下载文件

安装setuptools

1) 最简单安装,假定在ubuntu下
  • sudo apt-get install python-setuptools

 

SimpleHTTPServer 是单线程的临时服务,建议用多线程的, pip install simplefileserver, 或者其余ftp什么的,nginx你会的话也行,不会的话不要去想了,略麻烦,并且用错地方了。python

 pip install simplefileserver 安装完成后

在你的vps上执行simplefileserver命令,而后访问你服务器IP地址:8080就能够看到你服务器的目录了;若是不能,请检测vps防火墙是否禁用了8080端口

 

root@miaolegemi:~# sudo apt-get install python-setuptools root@miaolegemi:~# pip install simplefileserver root@miaolegemi:~# simplefileserver Bottle v0.12.16 server starting up (using PasteServer())... Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit. serving on 0.0.0.0:8080 view at http://127.0.0.1:8080
 root@miaolegemi:~# simplefileserver 7090 Bottle v0.12.16 server starting up (using PasteServer())... Listening on http://0.0.0.0:7090/
Hit Ctrl-C to quit. serving on 0.0.0.0:7090 view at http://127.0.0.1:7090

 

参考连接:nginx

setuptools详解 - 简书  https://www.jianshu.com/p/ea9973091fdfubuntu

如何快速方便的下载 VPS 中的文件 - V2EX  https://www.v2ex.com/t/189034服务器

[平常工具] simple-file-server 简单的文件传输和浏览,一条命令或双击就能开始文件传输 - V2EX  https://www.v2ex.com/t/422960多线程

利用VPS下载YouTube视频并上传至百度云网盘 – Type My Life  http://www.typemylife.com/use-vps-download-videos-from-youtube-upload-to-baidu-cloud/ide