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.

23 lines
1.8 KiB

1 year ago
# 安装nginx / Installing nginx
nginx can be installed differently, depending on the operating system.
根据系统的不一样,有很多种办法来安装nginx
## 在Linux上安装 / Installation on Linux
For Linux, nginx [packages](https://nginx.org/en/linux_packages.html) from nginx.org can be used.
对于linux,您可以使用来自nginx.org的[nginx软件包](https://nginx.org/en/linux_packages.html)
## 在FreeBSD上安装 / Installation on FreeBSD
On FreeBSD, nginx can be installed either from the [packages](https://docs.freebsd.org/en/books/handbook/ports/#pkgng-intro) or through the [ports](https://docs.freebsd.org/en/books/handbook/ports/#ports-using) system. The ports system provides greater flexibility, allowing selection among a wide range of options. The port will compile nginx with the specified options and install it.
在FreeBSD上,nginx可以从[packages](https://docs.freebsd.org/en/books/handbook/ports/#pkgng-intro)或通过[ports](https://docs.freebsd.org/en/books/handbook/ports/#ports-using)系统安装。ports系统提供了更大的灵活性,允许在大量的选项中进行选择。pors能够根据特定的选项来编译nginx并安装。
## 从源码安装 / Building from Sources
If some special functionality is required, not available with packages and ports, nginx can also be compiled from source files. While more flexible, this approach may be complex for a beginner. For more information, see [Building nginx from Sources](https://nginx.org/en/docs/configure.html).
如果您想要一些特别的功能,而这些功能是软件包和ports都没法提供,可以从源码编译安装nginx。虽然这种方法更加灵活,但对初学者来说可能比较复杂。详情可见[从源码构建nginx](https://nginx.org/en/docs/configure.html)。