Giter Club home page Giter Club logo

fileserver's Introduction

File Server GoReport GoDoc

In computing, a file server (or fileserver) is a computer attached to a network that has the primary purpose of providing a location for shared disk access, i.e. shared storage of computer files (such as documents, sound files, photographs, movies, images, databases, etc.) that can be accessed by the workstations that are attached to the same computer network. The term server highlights the role of the machine in the client–server scheme, where the clients are the workstations using the storage.

A file server is not intended to perform computational tasks, and does not run programs on behalf of its clients. It is designed primarily to enable the storage and retrieval of data while the computation is carried out by the workstations.

http://en.wikipedia.org/wiki/File_server

Installation

go get -u github.com/cixtor/fileserver

Usage

Run fileserver to start a file server in the current working directory, listening on a random ephemeral port number.

$ fileserver
File Server
Listening on http://localhost:55265
Started at Wed Jan 30 13:36:26 2019
Document root is /Users/cixtor/public_html
Press Ctrl-C to quit.
^C
Server stopped

Use -d to point the file server to a specific directory, and -p to use a specific port number, like so:

$ fileserver -p 8080
File Server
Listening on http://localhost:8080
Started at Wed Jan 30 13:36:26 2019
Document root is /Users/cixtor/public_html
Press Ctrl-C to quit.
[::1] - - [30/Jan/2019:21:36:36 +0000] "GET /index.html HTTP/1.1" 301 0 0.0000s
[::1] - - [30/Jan/2019:21:36:36 +0000] "GET / HTTP/1.1" 200 225 0.0004s
[::1] - - [30/Jan/2019:21:36:40 +0000] "GET /logger.go HTTP/1.1" 200 976 0.0090s
[::1] - - [30/Jan/2019:21:36:48 +0000] "GET /README.md HTTP/1.1" 200 1161 0.0003s
[::1] - - [30/Jan/2019:21:36:50 +0000] "GET /.git/ HTTP/1.1" 200 463 0.0005s
[::1] - - [30/Jan/2019:21:36:53 +0000] "GET /.git/HEAD HTTP/1.1" 200 23 0.0002s
^C
Server stopped

fileserver's People

Contributors

cixtor avatar

Stargazers

 avatar

Watchers

 avatar  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.