nginx的常用版本
- nginx的开源版本
- http://nginx.org/
- nginx plus商业版
- https://www.nginx.com/
- openresty
- http://openresty.org/
- tengine
nginx的下载安装
- 下载
[root@nginx ~]# wget http://nginx.org/download/nginx-1.22.1.tar.gz
- 安装
./configure --prefix=/usr/local/nginx make && make install
如果出现告警或报错
- 提示1
[root@nginx nginx-1.22.1]# ./configure checking for OS + Linux 3.10.0-1160.el7.x86_64 x86_64 checking for C compiler ... not found ./configure: error: C compiler cc is not found
-
- 安装gcc
[root@nginx nginx-1.22.1]# yum install -y gcc
- 提示2
./configure: error: the HTTP rewrite module require