首页 > 其他 > 详细

openresty编译安装

时间:2021-03-05 14:32:42      阅读:52      评论:0      收藏:0      [点我收藏+]

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    --without-http_mirror_module --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

  

openresty编译安装

原文:https://www.cnblogs.com/forlive/p/14485566.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!