码迷,mamicode.com
首页 > 其他好文 > 详细

install nginx - source

时间:2018-07-08 16:48:54      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:shared   htm   color   prepare   col   direct   load   url   director   

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

标签:shared   htm   color   prepare   col   direct   load   url   director   

原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/9280190.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!