Gunicorn 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
Gunicorn 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
Gunicorn 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT
开发语言 Python
操作系统 Linux
软件类型 开源软件
开源组织
地区 不详
投 递 者 renwofei423
适用人群 未知
收录时间 2010-08-26

软件简介

Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个pre-fork worker的模型,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速。

结构图:

uWSGI 的性能比较:

特点:

  • 本身支持WSGI、Django、Paster

  • 自动辅助进程管理

  • 简单的 Python配置

  • 允许配置多个工作环境

  • 各种服务器的可扩展钩子

  • 与 Python 2.x > = 2.5,3.x >= 3.2 兼容

安装:

$ pip install gunicorn
$ cat myapp.py
  def app(environ, start_response):
      data = b"Hello, World!\n"
      start_response("200 OK", [
          ("Content-Type", "text/plain"),
          ("Content-Length", str(len(data)))
      ])
      return iter([data])
$ gunicorn -w 4 myapp:app
[2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869)
[2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync
[2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874
[2014-09-10 10:22:28 +0000] [30875] [INFO] Booting worker with pid: 30875
[2014-09-10 10:22:28 +0000] [30876] [INFO] Booting worker with pid: 30876
[2014-09-10 10:22:28 +0000] [30877] [INFO] Booting worker with pid: 30877
展开阅读全文

代码

评论

点击加入讨论🔥(4) 发布并加入讨论🔥
发表了资讯
2017/03/05 08:09

Gunicorn 19.7.0 发布,Python 的 HTTP 服务器

Gunicorn 19.7.0 发布了,Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个pre-fork worker的模型,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速。 该版本至少要求 Python 2.6.0 ,包含如下改进内容: 删除了前一个版本废弃的 gunicorn_django 命令,使用命令行接口替代. 删除前一个版本废弃的 django_settings 设置项,...

4
18
发表了资讯
2016/05/12 00:00

gunicorn 19.5.0 发布,Python 的 HTTP 服务器

gunicorn 19.5.0 发布了。更新如下: Core fix: Ensure response to HEAD request won't have message body fix: lock domain socket and remove on last arbiter exit (#1220) improvement: use EnvironmentError instead of socket.error (#939) add: new $FORWARDDED_ALLOW_IPS environment variable (#1205) fix: infinite recursion when destroying sockets (#1219) fix: close sockets on shutdown (#922) fix: clean up...

3
13
发表了资讯
2016/01/06 00:00

Gunicorn 19.4.4/19.4.5 发布

Gunicorn 19.4.4/19.4.5 发布, == 19.4.5 == fix: NameError fileno in gunicorn.http.wsgi (#1178) 下载页面:19.4.5 == 19.4.4 == fix: check if a fileobject can be used with sendfile(2) (#1174) doc: be more descriptive in errorlog option (#1173) 下载页面:19.4.4 Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个pre-fork worker的模型,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器...

1
5
发表了资讯
2015/12/30 00:00

Gunicorn 19.4.2/19.4.3 发布

Gunicorn 19.4.2/19.4.3 发布,更新如下: == 19.4.2 == === Core === improvement: handle HaltServer in manage_workers (#1095) fix: Do not rely on sendfile sending requested count (#1155) fix: claridy --no-sendfile default (#1156) fix: LoggingCatch sendfile failure from no file descriptor (#1160) === Logging === fix: Always send access log to syslog if syslog is on fix: check auth before trying to...

1
4
发表了资讯
2015/11/26 00:00

Gunicorn 19.4.1 发布,Python 的 HTTP 服务器

Gunicorn 19.4.1 发布,更新如下: fix tornado worker (#1154) 下载地址:19.4.1 Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个pre-fork worker的模型,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速。...

0
10
发表了资讯
2015/03/07 00:00

Gunicorn 19.3 发布,Python 的 HTTP 服务器

Gunicorn 19.3 发布了,Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个预先叉工人模式,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速。 该版本改进内容包括: Core fix:#978 make sure a listener is inheritable add check_config class method to workers fix select timeout in sync worker with multiple connect...

4
15
发表了资讯
2015/02/05 00:00

Gunicorn 19.2.1 发布,Python 的 HTTP 服务器

Gunicorn 19.2.1 发布,改进内容: Logging expose loglevel in the Logger class AsyncIO worker (gaiohttp) fix #977 fix initial crash Documentation document security mailing-list in the contributing page. Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个预先叉工人模式,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及...

4
15
发表了资讯
2015/01/31 00:00

Gunicorn 19.2 发布,Python 的 HTTP 服务器

Gunicorn 19.2 发布了,Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个预先叉工人模式,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大致与各种Web框架兼容,只需非常简单的执行,轻量级的资源消耗,以及相当迅速。 该版本详细改进包括: Core optimize the sync workers when listening on a single interface add --sendfile settings to enable/disable sendfile. fix #856 . add the selecto...

3
11
发表了资讯
2012/12/26 00:00

Gunicorn 0.17 发布,Python HTTP 服务器

HTTP 服务器 Gunicorn 0.17 发布了,该版本改进内容包括: 支持绑定多个网卡地址 支持 SSL 支持 syslog 增加 nworkers_changed 钩子 为 post_request 钩子增加 response 参数 使用 argparse 解析命令行参数(废弃 optparse) fix PWD detection in arbiter miscellenaeous PEP8 fixes Gunicorn 绿色独角兽'是一个Python WSGI UNIX的HTTP服务器。这是一个预先叉工人模式,从Ruby的独角兽(Unicorn )项目移植。该Gunicorn服务器大...

3
16
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
4 评论
151 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部