nginx /unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.

★ 5,534⑂ 383👁 5⑃ 467● 1,089▤ 5
CApache-2.0Created 2017-09-06unit.nginx.org
下载:1.35.01.35.0 ↓1.35.02025-09-11
+0
日增长
5,534
stars
383
forks
5
watchers
467
prs
1,089
issues
5
releases

README

NGINX Unit



 Note: This repository has been archived. There will likely be no further development at this repo, and security vulnerabilities may be unaddressed.
 The repo may be cloned and used under its current license.


 Universal Web App Server

!NGINX Unit Logo

NGINX Unit is a lightweight and versatile open-source server that has
two primary capabilities:

- serves static media assets,
- runs application code in eight languages.

Unit compresses several layers of the modern application stack into a potent,
coherent solution with a focus on performance, low latency, and scalability. It
is intended as a universal building block for any web architecture, regardless
of its complexity, from enterprise-scale deployments to your pet's homepage.

Its native RESTful JSON API enables dynamic
updates with zero interruptions and flexible configuration, while its
out-of-the-box productivity reliably scales to production-grade workloads. We
achieve that with a complex, asynchronous, multithreading architecture
comprising multiple processes to ensure security and robustness while getting
the most out of today's computing platforms.

 Installation

 macOS

Run the following command to install both unitd (the Unit daemon) and
unitctl (the control tool).

 console
$ brew install nginx/unit/unit


For details and available language packages, see the
docs.

 Docker

 console
$ docker pull unit:
$ mkdir /tmp/unit-control  customize as needed.
$ docker run -d \
      --mount type=bind,src=/tmp/unit-control,dst=/var/run \
      --mount type=bind,src=.,dst=/www \
      --network host \
      unit


For a description of image tags, see the
docs.

WARNING: The latest image tag may not provide support for specific languages
modules, do check the available image tags from the link above before
pulling your image.

Your current working directory will now be mounted to the Unit image at /www.
You can reach its socket at /tmp/unit-control/control.unit.sock assuming no
further customizations have been made.

 Debian, Ubuntu, Amazon Linux, Fedora, Red Hat

This helper script configures the correct package repositories for system.
 console
$ wget https://raw.githubusercontent.com/nginx/unit/master/tools/setup-unit && chmod +x setup-unit
 ./setup-unit repo-config


Debian derivatives:
 console
 apt install unit


Fedora derivatives:
 console
 yum install unit


For details and available language packages, see the
docs.

 Getting Started with unitctl

unitctl streamlines the management of NGINX Unit processes
through an easy-to-use command line interface. To get started with unitctl,
download it from the
official GitHub releases
or Homebrew.

 Installation

 [!NOTE]
 If you installed Unit with Homebrew, you can skip this step
 as unitctl is included by default.

Download the appropriate unitctl binary for your system from the
NGINX Unit releases.

 console
$ tar xzvf unitctl-master-x86_64-unknown-linux-gnu.tar.gz
 mv unitctl /usr/local/bin/



 Launch Unit using Docker
If y

Top issues

Discussions

Latest release

1.35.0 1.35.0 2025-09-11
Unitctl
This is a released binary of unitctl.
Unitctl is an official command line tool for managing Unit installations.

 Unit
For the current release of the NGINX Unit application server check the Unit Installation Guide and the Unit Quickstart Guide.

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON