参考的博文:《在 Ubuntu 上使用源码安装 OpenResty》
《OpenResty 安装安装详解-Ubuntu》
《Linux学习之CentOS 7源码安装openresty》
https://openresty.org/en/download.html是官网下载网址,页面往下拉有下载的链接。
https://github.com/openresty/openresty
是github上的链接。
可以点击上图中tags
进入有不同版本的页面。
sudo cat /etc/issue
可以看到操作系统的版本是Ubuntu 20.04.4 LTS
,sudo lsb_release -r
可以看到版本是20.04
,sudo uname -r
可以看到内核版本是5.5.19
,sudo make -v
可以看到版本是GNU Make 4.2.1
。
sudo apt-get install -y libpcre3-dev libssl-dev perl build-essential curl zlib1g-dev libreadline-dev libncurses5-dev libpcre3-dev
安装依赖包。