1.8 KiB
安装nginx / Installing nginx
nginx can be installed differently, depending on the operating system.
根据系统的不一样,有很多种办法来安装nginx
在Linux上安装 / Installation on Linux
For Linux, nginx packages from nginx.org can be used.
对于linux,您可以使用来自nginx.org的nginx软件包
在FreeBSD上安装 / Installation on FreeBSD
On FreeBSD, nginx can be installed either from the packages or through the ports 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或通过ports系统安装。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.
如果您想要一些特别的功能,而这些功能是软件包和ports都没法提供,可以从源码编译安装nginx。虽然这种方法更加灵活,但对初学者来说可能比较复杂。详情可见从源码构建nginx。