Git Product home page Git Product logo

java-nio-services's Introduction

#JAVA服务器基于JAVA NIO I. 已实现HTTP协议

II. 已实现HTTPS协议

III.已实现FASTCGI协议(Client端)

#运行HTTP服务器 ##运行开发包下jar文件 java -jar http-server-version-{version}.jar

##源码编译 编译源码并运行src/org/kaipan/www/socket/http/HttpServer.java

##配置文件路径 开发包下http-server.properties

#HTTP服务器配置

Web document root directory

server.root = /home/will/Develop/www    //静态目录

HTTP server config

server.bind = 0.0.0.0    //服务器监听IP 
server.port = 8080    //服务器监听PORT
server.index = index.html    //服务器访问默认静态文件

Web static file extension

server.static_ext = html,htm,xhtml,shtml,shtm,jpg,jpeg,png,gif,bmp,ico,js,css,bin,xml,tar,ppt,pdf,swf,zip,gzip,woff,svg

Web dynamic file extension

server.dynamic_ext = php

Max post size, default 4M

server.post_maxsize = 4194304

FastCgi config

server.fastcgi_root = /home/will/Develop/projects/app/www    //动态脚本目录
server.fastcgi_host = 127.0.0.1    //PHP-FPM运行IP
server.fastcgi_port = 9000    //PHP-FRM运行PORT
server.fastcgi_index = index.php    //服务器访问默认动态文件

Encoding

server.charset = UTF-8

待开发功能

I.实现WEBSOCKET

联系作者

will<[email protected]>

java-nio-services's People

Contributors

pankai2014 avatar

Watchers

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