官网
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

Linux的Nginx1.14安装
报错 缺少依赖

一.安装依赖包

每次安装软件都必须,默认会少几个包,必须安装

[[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

Linux的Nginx1.14安装

[[email protected] nginx]# cd sbin/
[[email protected] sbin]# ls
nginx
[[email protected] sbin]# ./nginx
Linux的Nginx1.14安装

访问web
Linux的Nginx1.14安装

相关文章:

  • 2021-05-14
  • 2021-09-03
  • 2021-11-20
  • 2021-07-15
猜你喜欢
  • 2021-12-19
  • 2022-01-10
  • 2022-12-23
  • 2021-06-27
  • 2021-05-06
  • 2021-12-06
相关资源
相似解决方案