Tengine是由淘宝网发起的Web服务器项目。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
5.8 KiB

12 years ago
  1. <h1 align="center" style="border-bottom: none">
  2. <br>Tengine
  3. </h1>
  4. <p align="center">Visit <a href="https://tengine.taobao.org" target="_blank">tengine.taobao.org</a> for the full documentation,
  5. examples and guides.</p>
  6. <div align="center">
  7. [![GitHub license](https://img.shields.io/github/license/alibaba/tengine.svg)](https://github.com/alibaba/tengine/blob/main/LICENSE)
  8. [![GitHub stars](https://img.shields.io/github/stars/alibaba/tengine.svg)](https://github.com/alibaba/tengine/stargazers)
  9. [![GitHub stars](https://img.shields.io/badge/contributions-welcome-orange.svg)](https://github.com/alibaba/tengine/blob/main/CONTRIBUTING.md)
  10. [![Build Status](https://github.com/alibaba/tengine/actions/workflows/ci.yml/badge.svg)](https://github.com/alibaba/tengine/actions/workflows/ci.yml)
  11. </div>
  12. ## Introduction
  13. Tengine is a web server originated by [Taobao](http://en.wikipedia.org/wiki/Taobao), the largest e-commerce website in Asia. It is based on the [Nginx](http://nginx.org) HTTP server and has many advanced features. Tengine has proven to be very stable and efficient on some of the top 100 websites in the world, including [taobao.com](http://www.taobao.com) and [tmall.com](http://www.tmall.com).
  14. Tengine has been an open source project since December 2011. It is being actively developed by the Tengine team, whose core members are from Taobao, Sogou and other Internet companies. Tengine is a community effort and everyone is encouraged to [get involved](https://github.com/alibaba/tengine).
  15. ## Features
  16. * All features of nginx-1.24.0 are inherited, i.e., it is 100% compatible with nginx.
  17. * Dynamically configure the servers, locations and upstreams without reloading or restarting worker processes with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  18. * HTTP/3 support (QUIC v1 and draft-29) with [xquic](https://github.com/alibaba/xquic).
  19. * High-speed UDP transmission with kernel-bypass.
  20. * Dynamically configure different TLS protocols for different server names with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  21. * Dynamically configure timeout setting, SSL Redirects, CORS and enabling/disabling robots for the server and location with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  22. * Dynamically configure HTTP routing based on multiple values of a specific header, cookie or query parameter with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  23. * Dynamically configure HTTP routing based on multiple upstream according to weight with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  24. * Dynamically configure HTTP routing based on modulo operation for a specific header, cookie or query parameter with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  25. * Dynamically configure HTTP routing to add/append custom header or add query parameter in the HTTP request to the upstream with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  26. * Dynamically configure HTTP routing to add custom header in the HTTP response to the client with [tengine-ingress](https://github.com/alibaba/tengine-ingress).
  27. * Support the CONNECT HTTP method for forward proxy.
  28. * Support asynchronous OpenSSL, using hardware such as QAT for HTTPS acceleration.
  29. * Enhanced operations monitoring, such as asynchronous log & rollback, DNS caching, memory usage, etc.
  30. * Support server_name in Stream module.
  31. * More load balancing methods, e.g., consistent hashing, and session persistence.
  32. * Input body filter support. It's quite handy to write Web Application Firewalls using this mechanism.
  33. * Dynamic scripting language (Lua) support, which is very efficient and makes it easy to extend core functionalities.
  34. * Limits retries for upstream servers (proxy, memcached, fastcgi, scgi, uwsgi).
  35. * Includes a mechanism to support standalone processes.
  36. * Protects the server in case system load or memory use goes too high.
  37. * Multiple CSS or JavaScript requests can be combined into one request to reduce download time.
  38. * Removes unnecessary white spaces and comments to reduce the size of a page.
  39. * Proactive health checks of upstream servers can be performed.
  40. * The number of worker processes and CPU affinities can be set automatically.
  41. * The limit_req module is enhanced with whitelist support and more conditions are allowed in a single location.
  42. * Enhanced diagnostic information makes it easier to troubleshoot errors.
  43. * More user-friendly command lines, e.g., showing all compiled-in modules and supported directives.
  44. * Expiration times can be specified for certain MIME types.
  45. * Receives HTTP traffic on the TLS listener with option.
  46. * Debugging HTTP connection usage.
  47. * ...
  48. ## Installation
  49. Tengine can be downloaded at [http://tengine.taobao.org/download/tengine.tar.gz](http://tengine.taobao.org/download/tengine.tar.gz). You can also checkout the latest source code from GitHub at [https://github.com/alibaba/tengine](https://github.com/alibaba/tengine)
  50. To install Tengine, just follow these three steps:
  51. ```bash
  52. ./configure
  53. make
  54. sudo make install
  55. ```
  56. By default, it will be installed to _/usr/local/nginx_. You can use the __'--prefix'__ option to specify the root directory.
  57. If you want to know all the _'configure'_ options, you should run __'./configure --help'__ for help.
  58. ## Documentation
  59. The homepage of Tengine is at [http://tengine.taobao.org/](http://tengine.taobao.org/)
  60. You can access [http://tengine.taobao.org/documentation.html](http://tengine.taobao.org/documentation.html) for more information.
  61. ## Contact
  62. [https://github.com/alibaba/tengine/issues](https://github.com/alibaba/tengine/issues)
  63. Dingtalk user group: 23394285
  64. ## License
  65. [BSD-2-Clause License](https://github.com/alibaba/tengine/blob/master/LICENSE)
  66. <h1 align="center" style="border-bottom: none">
  67. <a href="https://tengine.taobao.org" target="_blank"><img alt="Tengine" src="/docs/image/tengine-logo.png"></a>
  68. </h1>