nginx-1.13.0源码安装

本文详细介绍了在Linux环境下从源码安装Nginx的过程,包括安装必要的依赖库如pcre、zlib和openssl,下载并解压依赖包及Nginx源码,以及配置、编译和安装Nginx的步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、安装依赖

yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel

二、依赖包下载

    pcre-8.40.tar.gz
    zlib-1.2.8.tar.gz
    openssl-1.0.2h.tar.gz
    nginx-1.13.0.tar.gz
    百度云下载 链接:https://pan.baidu.com/s/15lnhrNgukn2ROZV48VUChQ 密码:gnui

三、安装

cd /soft
tar -xvzf pcre-8.40.tar.gz -C /tmp/
cd /tmp/pcre-8.40/
./configure        
make && make install

cd /soft
tar -xvzf zlib-1.2.8.tar.gz -C /tmp/
cd /tmp/zlib-1.2.8
./configure        
make && make install

cd /soft
tar -xvzf openssl-1.0.2h.tar.gz -C /tmp/ 
cd /tmp/openssl-1.0.2h
./config   
make && make install 

cd /soft
tar -xvzf nginx-1.13.0.tar.gz -C /tmp/
cd /tmp/nginx-1.13.0
 ./configure --prefix=/tools/nginx --pid-path=/tools/nginx/nginx.pid --error-log-path=/data/dataLogs/nginx/error.log --http-log-path=/data/dataLogs/nginx/access.log --with-http_ssl_module --with-pcre=/tmp/pcre-8.40 --with-zlib=/tmp/zlib-1.2.8 --with-openssl=/tmp/openssl-1.0.2h --with-stream --with-http_stub_status_module
make && make install

四、配置

    。。。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值