Coder Social home page Coder Social logo

shttpd's Introduction

shttpd v1.0.0 介绍

shttpd 为静态web 服务器,借鉴libevent的核心**、采用EPOLL反应堆模型,目前为开发版本,仅供测试、学习用。 目前由于该项目仅作为本人学习用,暂时还没有提供日志功能,也没有提供CGI功能,http协议也做的比较粗放,后续有时间会补上。 最后感谢万能的互联网,项目中字符串处理函数借鉴于此 (泪目~,我为啥不安安静静地直接用nginx就好了呢...,好奇心这东西一碰就再也收不回了,http协议、FastCGI协议。。。感觉下一步是不是准备写一个sphp出来了)

安装

执行 make 命令即可,最终生成的可执行文件为bin目录下的shttpd

使用

执行 ./bin/shttpd -d web根目录 参数选项:

  • -d : 必须选项,指定web根目录
  • -a : 绑定IP地址,默认为127.0.0.1
  • -p : 绑定端口,默认为8888
  • -v : 查看版本号
  • -h或-? : 查看帮助

shttpd's People

Contributors

tshsophie avatar

Watchers

James Cloos 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.