首页 > 其他 > 详细

redhat 编译安装 nginx

时间:2019-08-28 20:43:37      阅读:60      评论:0      收藏:0      [点我收藏+]

学习一个东西,首先要看官网

http://nginx.org/en/linux_packages.html#RHEL-CentOS

 

一、安装编译工具、依赖包
# 主要安装 pcre-devel Nginx 需要
$ yum -y install gcc gcc-c++ autoconf automake
$ yum -y install zlib zlib-devel openssl openssl-devel pcre-devel


二、、编译安装nginx

2.解压: tar -zxvf nginx-1.14.0.tar.gz
3.配置: ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 
# j2 表示 2 个核心,可根据实际需求修改
4.安装: make -j2 & make install 

5. 重启 nginx

 

redhat 编译安装 nginx

原文:https://www.cnblogs.com/students/p/11426326.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!