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