• 简单快捷的方式从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/

  • 相关阅读:
    四、面向对象分析和设计全流程概述
    三、三大核心特征-继承
    二、三大核心特征-多态
    [第三章]一、三大核心特征-封装
    四、抽象类
    三、接口
    二、对象
    [第二章]一、类
    六、面向对象的迷思
    五、面向对象的应用范围
  • 原文地址:https://www.cnblogs.com/tongongV/p/10961933.html
Copyright © 2020-2023  润新知