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,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    Oracle中job的使用详解
    Control File (二)重建CONTROLFILE --- NORESETLOG
    Oracle Analyze 命令 详解
    深入学习Oracle分区表及分区索引
    B树索引和位图索引的区别!
    RAID0_RAID1_RAID10_RAID5各需几块盘才可组建
    Oracle IO优化心得
    修改dbwr后台进程数量
    查看ORACLE执行计划的几种常用方法
    printf()格式化输出详解及echo带颜色输出
  • 原文地址:https://www.cnblogs.com/forlive/p/14485566.html
Copyright © 2011-2022 走看看