安装nginx
链接:https://share.weiyun.com/5SgepMq 密码:x00jxg
#一般系统中已经装了了 make 和 g++,无须再装
安装 make:
shell>yum -y install autoconf automake make
安装 g++:
shell>yum -y install gcc gcc-c++
#安装 nginx 依赖的库
shell>yum -y install pcre pcre-devel
shell>yum -y install zlib zlib-devel
shell>yum install -y openssl openssl-devel
#解压:
shell>tar –zxvf nginx-1.16.0.tar.gz
shell>cd nginx-1.16.0
shell>./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
#说明
#--prefix 指定安装目录
#--with-http_ssl_module 安装 https 模块
#creating objs/Makefile 代表编译成功
shell>make && make install
#make 编译
#make install 安装