Git Product home page Git Product logo

jserver's Introduction

JAVA服务器

  • 支持HTTP协议

  • 支持HTTPS协议

  • 支持FASTCGI协议(Client端)

  • 支持WEBSOCKET协议

运行HTTP/HTTPS服务器

运行开发包下jar文件

java -jar http-server-version-{version}.jar ./http-server.properties
java -jar https-server-version-{version}.jar ./https-server.properties

源码编译

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

配置文件路径

http: 开发包下http-server.properties
https: 开发包下https-server.properties

HTTP/HTTPS服务器配置

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

联系作者

will<[email protected]>

jserver's People

Contributors

pankai2014 avatar

Stargazers

 avatar 猫开 avatar Chen.H avatar junglereal avatar springhello avatar Tzz avatar Yibo Gou avatar  avatar  avatar  avatar Sunny avatar davidwei_001 avatar DehengXu avatar Pete Houston avatar Mpale avatar  avatar Jake Woki avatar YTXQOX avatar  avatar WgzXy avatar 柏灵 avatar  avatar  avatar  avatar  avatar Jade Shan avatar SPARON avatar lemonzone2010 avatar yuchenxue avatar  avatar  avatar  avatar wikeryong avatar lemon avatar Hardy avatar 如梦技术 avatar cohaolee avatar XiangZi avatar wenyan avatar uzkitio avatar Koma avatar JoakMa avatar 人魚兒 avatar

Watchers

davidwei_001 avatar James Cloos avatar  avatar  avatar yuchenxue avatar  avatar JoakMa avatar WgzXy avatar  avatar Sunny avatar 人魚兒 avatar

jserver's Issues

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.