簡單快捷的方式從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

相關文章
相關標籤/搜索