ubuntu18源码包安装openresty
author: headsen chen
date : 2019-07-30 15:42:24
#在ubuntu18.04 环境下,openresty的依赖库有:PCRE、OpenSSL、zlib,接下来按如下命令进行安装: 1. 安装依赖 apt-get update apt-get install libpcre3-dev apt-get install openssl apt-get install libssl-dev apt-get install ruby apt-get install zlib1g apt-get install zlib1g.dev 2,下载安装源码包: wget https://openresty.org/download/openresty-1.13.6.2.tar.gz tar xzvf openresty-1.13.6.2.tar.gz cd openresty-1.13.6.2/ ./configure make sudo make install
ubuntu上apt安装 openresty
apt-get update apt-get install libpcre3-dev apt-get install openssl apt-get install libssl-dev apt-get install ruby apt-get install zlib1g apt-get install zlib1g.dev apt-get install openresty wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add - apt-get -y install software-properties-common add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main" apt-get install openresty cd /usr/local/openresty/nginx/conf/ openresty -v #nginx version: openresty/1.15.8.1