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

安装setuptools

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

 

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

 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

 

参考链接:

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

如何快速方便的下载 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/

 

posted @ 2019-06-02 09:06  西伯利亚虎  阅读(3822)  评论(0编辑  收藏  举报

Permanence, perseverance and persistence in spite of all obstacles, discouragements and impossibilities: It is this, that in all things distinguishes the strong soul from the weak.