# Java-Nio-Services **Repository Path**: jarynpl/Java-Nio-Services ## Basic Information - **Project Name**: Java-Nio-Services - **Description**: JAVA服务器基于JAVA NIO I. 已实现HTTP协议 II. 已实现HTTPS协议 III.已实现FASTCGI协议(Client端) - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 0 - **Created**: 2016-10-08 - **Last Updated**: 2022-12-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #JAVA服务器基于JAVA NIO I. 已实现HTTP协议 II. 已实现HTTPS协议 III.已实现FASTCGI协议(Client端) #运行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 # 待开发功能 I.实现WEBSOCKET # 联系作者 will<pan.kai@icloud.com>