zoukankan      html  css  js  c++  java
  • 简单快捷的方式从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/

  • 相关阅读:
    Flask学习目录
    Android笔记
    PyQt学习目录
    学习目录
    Python学习目录一
    sqlserver STUFF & STR
    PowerShell+Jenkins,实现项目的自动化部署
    DotNet Core Backend development
    .Net Core 类注入单元测试
    团队项目之团队展示&选题
  • 原文地址:https://www.cnblogs.com/tongongV/p/10961933.html
Copyright © 2011-2022 走看看