GithubHelp home page GithubHelp logo

cgi's Introduction

基于ngnix+spawn_cgi+fastcgi作为服务器,使用C语言编写的cgi,实现了简单的留言板功能;

项目结构简介:
1.conf主要包含了nginx与fastcig的配置
2.dao实现了基于sqllite的标管理
3.db是包含了sqllite的db以及表的scheme
4.default实现了前台留言板的页面功能
5.http实现了http基本协议的处理功能
6.lib为项目所需的动态链接库
7.public为nginx的root目录,包含了html,js等静态资源
8.util实现了list、hash表、链表已经一些基本常用功能

项目编译简介:
1.下载项目包至本地
2.fcgi.tar.gz、spawn-fcgi-1.6.3.tar.gz、sqlite-autoconf-3071700.tar.gz解压编译并安装
3.自行下载nginx编译安装
4.执行MAKEFILE对项目进行编译
5.执行cgiserver.sh启动cgi
6.通过浏览器进行访问,localhost:port/defaultMainHtml.c

项目需要优化内容:
1.统一的内存管理机制,申请、释放

cgi's People

Contributors

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