zoukankan      html  css  js  c++  java
  • centos7.0安装OpenResty

    查看系统版本
    [root@localhost redis-3.2.9]# cat /etc/system-release
    CentOS Linux release 7.3.1611 (Core)
     
    下载OpenResty,下载地址:https://openresty.org/cn/download.html
    或者使用命令安装
    mkdir -p /data/setupsoft
    cd /data/setupsoft
    wget https://openresty.org/download/openresty-1.11.2.3.tar.gz
    #解压openresty
    tar -zxvf openresty-1.11.2.3.tar.gz
    #进入解压后的文件夹
    cd openresty-1.11.2.3
     ./configure
    make j2
    make install

    编译出错,依次出错报找不到如下对应的库,安装命令如下

    yum install gcc
    yum -y install pcre-devel
    yum install openssl openssl-devel -y
    注意
    默认, --prefix=/usr/local/openresty 程序会被安装到/usr/local/openresty目录
    您可以指定各种选项,比如
    ./configure --prefix=/opt/openresty \ --with-luajit \ --without-http_redis2_module \ --with-http_iconv_module \ --with-http_postgres_module
    试着使用 ./configure --help 查看更多的选项
    配置文件(./configure script)运行出错可以到 build/nginx-VERSION/objs/autoconf.err 找到。 VERSION 的地方必须与OpenResty版本号相对应
     
  • 相关阅读:
    java 用代码实现判断字符串的开头和结尾
    java基础 1-path
    C#基础(语句 for循环)
    C#基础(数组)
    C#基础(语句 if else)
    C#基础(变量、常量、运算符)
    继承-person
    继承-字母表
    继承-monkey
    继承-people
  • 原文地址:https://www.cnblogs.com/stimlee/p/7124068.html
Copyright © 2011-2022 走看看