安装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 安装

原文链接: https://www.cnblogs.com/xuewudao/p/12661028.html

欢迎关注

微信关注下方公众号,第一时间获取干货硬货;公众号内回复【pdf】免费获取数百本计算机经典书籍;

也有高质量的技术群,里面有嵌入式、搜广推等BAT大佬

    安装nginx

原创文章受到原创版权保护。转载请注明出处:https://www.ccppcoding.com/archives/340802

非原创文章文中已经注明原地址,如有侵权,联系删除

关注公众号【高性能架构探索】,第一时间获取最新文章

转载文章受原作者版权保护。转载请注明原作者出处!

(0)
上一篇 2023年3月2日 上午12:46
下一篇 2023年3月2日 上午12:47

相关推荐