zoukankan      html  css  js  c++  java
  • OpenResty安装(Centos7.2)

    下载、解压安装包

    [root]# wget https://openresty.org/download/openresty-1.11.2.5.tar.gz

    安装libpq、pcre、openssl

    libpq

    [root]# yum install postgresql-devel

            如果不安装libpq,则有可能报出以下错误:
    ./configure: error: ngx_postgres addon was unable to detect version of the libpq library.

    pcre
    [root]# yum -y install pcre-devel

            如果不安装pcre,则有可能报出以下错误:
    ./configure: error: the HTTP rewrite module requires the PCRE library

    openssl
    [root]# yum -y install openssl openssl-devel 

            如果不安装openssl,则有可能报出以下错误:
    ./configure: error: SSL modules require the OpenSSL library.

    编译安装
    1. [root]# ./configure --prefix=/root/software/openresty
    2. --with-luajit
    3. --without-http_redis2_module
    4. --with-http_iconv_module
    5. --with-http_postgres_module
    6.  
    7. [root]# make & make install

    启动
    [root]# ~/software/openresty/nginx/sbin/nginx -p ~/software/openresty/nginx/ -c ~/software/openresty/nginx/conf/nginx.conf

    验证
    [root]# ps -ef | grep nginx

            若有类似如下进程,则启动成功。



    链接:http://moguhu.com/article/detail?articleId=54

  • 相关阅读:
    用户数据报协议---UDP
    斐波那契数列
    从尾到头打印链表
    Mybatis三种查询方式
    Mybatis配置
    字典的用法
    遍历列表、切片、定义元组
    与列表相关知识
    python一些方法总结
    计算机的容量
  • 原文地址:https://www.cnblogs.com/yanzi-meng/p/9437484.html
Copyright © 2011-2022 走看看