zoukankan      html  css  js  c++  java
  • openresty编译安装

    1.下载源码包  http://openresty.org/cn/download.html

    2.安装依赖环境

    yum -y install sysstat wget net-tools screen lsof tcpdump nc mtr openssl-devel vim bash-completion lrzsz nmap telnet tree ntpdate bash-completion chrony gcc patch libffi-devel python-devel  zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel openssl openssl-devel
    

    3.openresty有三个依赖包,是之前用yum安装的时候下载下来的,如果编译有问题,可以下载这个包再安装上

    openresty-openssl111-1.1.1i-1.el7.x86_64.rpm
    openresty-pcre-8.44-1.el7.x86_64.rpm
    openresty-zlib-1.2.11-3.el7.centos.x86_64.rpm
    

    4.解压,进入目录,编译,安装

    [root@Server openresty-1.19.3.1]# tar xf openresty-1.19.3.1.tar.gz
    [root@Server openresty-1.19.3.1]# cd openresty-1.19.3.1/
    [root@Server openresty-1.19.3.1]# ./configure --prefix=/opt/openresty   --with-pcre-jit --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-http_v2_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_auth_request_module --with-http_secure_link_module --with-http_random_index_module --with-http_gzip_static_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-threads --with-compat --with-stream --with-http_ssl_module
    [root@Server openresty-1.19.3.1]# gmake && gmake install  

    5.查看

    [root@Server openresty-1.19.3.1]# /opt/openresty/nginx/sbin/nginx -V
    

      

    初学linux,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    qt学习笔记(1):qt点击运行没有反应。
    JS Object类型
    JS Boolean数据类型和数据类型转换规律
    CSS雪碧图
    CSS
    PS基础
    JS number数字类型
    js中的变量和数据类型
    JS 基础
    单词
  • 原文地址:https://www.cnblogs.com/forlive/p/14485566.html
Copyright © 2011-2022 走看看