Coder Social home page Coder Social logo

havealex / filehttpserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from youngyangyang04/filehttpserver

0.0 0.0 0.0 19 KB

A simple file HTTP server, written in golang, that include get, put, post method to upload files

License: GNU General Public License v3.0

Shell 5.98% Go 94.02%

filehttpserver's Introduction

介绍

fileHttpServer 是一个使用golang编写的简单文件存储系统,包括get, put, post等方式来上传文件

背景

场景1:在工作之后,特别是大厂,都要使用跳板机链接到开发机上进行编程,经常一些东西要从本地传到开发机 一些东西要从开发机传到本地,这个文件传输就是一个问题,使用fileHttpServer可以很好的解决这个问题, 在开发机上部署上fileHttpServer,然后在本地可以通过命令一键将文件传输到开发机上,同时还生成下载链接, 方便和同事们共享文件

场景2:我们平时开发自己的代码,使用阿里云或者百度云的服务器,一样可以用fileHttpServer来传输文件

场景3:平时我们和其他人分享一些文件的时候无非是通过微信或者QQ直接把文件发过去,可是上G大小的文件是受限制的 我们可以通过自己在云服务器上部署fileHttpServer,然后生成文件的下载链接,直接把下载链接给要分享的人,非常方便。

部署

  • git clone https://github.com/youngyangyang04/fileHttpServer.git
  • 安装最新版本的go语言开发环境(1.11.5以上)

运行

  • 执行 sh start.sh
    此时fileHttpServer就运行起来了

使用方式

curl -T $fileName http://$ip:8085/upload/$fileName

$fileName 是要传输的文件
$ip是fileHttpServer部署所在机器的IP
8085是fileHttpServer的默认服务端口号

filehttpserver's People

Contributors

youngyangyang04 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.