内容简介:hi-nginx-1.1.0 发布了。 此次更新: 支持java hi-nginx是一款基于nginx写成的通用服务器。它既是web server,也是application server;它不仅继承了nginx的全部功能,完全兼容nginx,而且支持多种语言混合开发web...
hi-nginx-1.1.0 发布了。
此次更新:
支持java
hi-nginx是一款基于nginx写成的通用服务器。它既是web server,也是application server;它不仅继承了nginx的全部功能,完全兼容nginx,而且支持多种语言混合开发web应用。它性能强劲,易于开发,部署方便。
目前,hi-nginx支持混合使用c++,python,lua和 JAVA 同时进行web应用开发。用户应该根据应用场景的实际需要,细粒度地选择最为合适的开发语言,最大限度的发挥hi-nginx的潜能。
hi-nginx致力于增强用户的工作,而不是改变用户的工作。当用户不满意它时,用户可以安全地“回滚”至之前的工作状态,而不会产生任何损失。
Java 例子:
package hi;
public class jhello implements hi.servlet {
public jhello() {
}
public void handler(hi.request req, hi.response res) {
res.status = 200;
res.content = "hello,world";
}
}Java 配置例子:
hi_java_classpath "-Djava.class.path=.:/usr/local/nginx/java:/usr/local/nginx/java/hi-nginx-java.jar";
hi_java_options "-server -d64 -Xms512m -Xmx512m -Xmn170m";
hi_java_servlet_cache_expires 300s;
hi_java_servlet_cache_size 10;
hi_java_version 8;
location = /jhello {
hi_need_cache off;
hi_java_servlet_cache_expires 60s;
hi_java_servlet hi/jhello;
}主项目地址:https://github.com/webcpp/hi-nginx
文档地址:https://github.com/webcpp/hi-nginx-doc
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
The Intersectional Internet
Safiya Umoja Noble、Brendesha M. Tynes / Peter Lang Publishing / 2016
From race, sex, class, and culture, the multidisciplinary field of Internet studies needs theoretical and methodological approaches that allow us to question the organization of social relations that ......一起来看看 《The Intersectional Internet》 这本书的介绍吧!