nginx

时间:2021-04-22 09:11:19   收藏:0   阅读:28

编译安装

1.配置编译环境

--prefix=PATH  指定软件安装在什么目录下

--user=USER  指定软件worker进程管理用户,利用www.虚拟用户管理worker进程

--group=USER  

--with-http_ssl_module  使用nginx程序可以支持HTTPS访问功能

--with-http_stub_status_module   用于用户访问nginx服务情况

2.编译过程

./configure    --prefix=/application/nginx  --user=www  --group=www --with-http_ssl_module  --with-http_stub_status_module

make && make install

ln -s /application/nginx /application/nginx

3.编译安装

nginx软件程序目录结构

conf  ---nginx程序所有配置文件保存目录

nginx.conf  nginx主配置文件

#精简nginx.conf配置文件内容

grep -Ev "#|^$" nginx.conf.default>nginx.conf

nginx配置文件组成

1).main   nginx主区块

2).ecent  nginx事件区块

3).http     nginx http功能区块

4).server      nginx  网站主机区块

5).location nginx 匹配或定位区块

 

原文:https://www.cnblogs.com/LELEBIAO/p/14687591.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!