官网
http://nginx.org/en/download.html
[root@jiaxin-ceshi nginx-1.14.0]# cd /usr/local/src
[root@jiaxin-ceshi src]# wget http://nginx.org/download/nginx-1.14.0.tar.gz
[root@jiaxin-ceshi src]# tar xf nginx-1.14.0.tar.gz
[root@jiaxin-ceshi src]# cd nginx-1.14.0
[root@jiaxin-ceshi nginx-1.14.0]# ./configure --prefix=/usr/local/nginx
报错 缺少依赖
一.安装依赖包
每次安装软件都必须,默认会少几个包,必须安装
[root@jiaxin-ceshi src]# yum install autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel gcc
[root@jiaxin-ceshi src]# cd nginx-1.14.0
[root@jiaxin-ceshi nginx-1.14.0]# ./configure --prefix=/usr/local/nginx
[root@jiaxin-ceshi nginx-1.14.0]# make
[root@jiaxin-ceshi nginx-1.14.0]# make install
[root@jiaxin-ceshi nginx]# cd sbin/
[root@jiaxin-ceshi sbin]# ls
nginx
[root@jiaxin-ceshi sbin]# ./nginx
访问web