「二」nginx下载与安装

1.下载地址(开源版):https://nginx.org/en/download.html

wget https://nginx.org/download/nginx-1.14.2.tar.gz

2.解压

tar -xzf nginx-1.14.2.tar.gz 

3.编译

./configure --help|more:查看编译支持哪些参数
with:模块默认不会编译
without:默认编译

指定目录编译
./configure --prefix=/home/ubuntu/nginx

4.make编译

make && make install

目录结构图

  • auto:辅助编译时去判定nginx支持哪些模块
  • CHANGES:每个版本中提供了哪些特性
  • conf:示例配置文件
  • configure:用来生成中间文件
  • contrib:vim工具(语法高亮)
  • html:存放目录
  • man:帮助文件
  • src:框架源代码
  • objs:编译后生成的编译文件夹

tree conf :以树得形式展示目录结构
./configure --help |more :config编译支持哪些参数

出现的问题:


参考:

  1. https://blog.csdn.net/qq_40965507/article/details/117620466
  2. https://www.ztsky.cn/2346.html
  3. https://www.cnblogs.com/tudou1179006580/p/14875457.html
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章