install nginx - source

Posted xiaobin-hlj80

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install nginx - source相关的知识,希望对你有一定的参考价值。

OS: centos7 minimal

0. prepare

   1) gcc

$yum install gcc

    2) PCRE

$yum -y install pcre-devel

   3) zlib

$yum install zlib-devel

   4) OpenSSL

     default directory: /usr/ssl

     (1) down

$wget https://www.openssl.org/source/openssl-1.0.2o.tar.gz

    (2) perl

$yum install perl

    (3) setup

$./config --prefix=/usr --shared
$make

Root permission Required

$make install

 

1. install

    1) down

$curl --progress https://nginx.org/download/nginx-1.14.0.tar.gz | tar xz

    2) setup

$./configure --prefix=/usr/local/nginx --with-openssl=/usr/ssl
$make

    Root permission Required

$make install

 

Reference:

    1. nginx - setup

以上是关于install nginx - source的主要内容,如果未能解决你的问题,请参考以下文章

搭建phabricator代码审核工具

我的Android进阶之旅解决安装apk时出现错误:INSTALL_FAILED_CONFLICTING_PROVIDER : Package couldn‘t be installed in(代码片

The service already exists! The current server installed: D:mysqlmysql-5.7.30-winx64inmysqld My(代码片

安装win10时显示无法打开所需的文件d:\sources\install.wim.错误代码:0x

安装Python 库软件时提示"setuptools must be installed to install from a source distribution"错误(示例代码

nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)(代码片