openresty编译安装
1.下载源码包 http://openresty.org/cn/download.html
2.安装依赖环境
1 | 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安装的时候下载下来的,如果编译有问题,可以下载这个包再安装上
1 2 3 | 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.解压,进入目录,编译,安装
1 2 3 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.查看
1 | [root@Server openresty-1.19.3.1] # /opt/openresty/nginx/sbin/nginx -V |
初学linux,每学到一点东西就写一点,如有不对的地方,恳请包涵!
分类:
A.工作常用
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· DeepSeek在M芯片Mac上本地化部署
· 葡萄城 AI 搜索升级:DeepSeek 加持,客户体验更智能