openresty 安装

in 编程
关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9

#Openresty
#环境:openresty-1.11.2.2 + pcre-8.40 + openssl-1.0.1u
#wget https://openresty.org/download/openresty-1.11.2.2.tar.gz
#wget https://ftp.pcre.org/pub/pcre/pcre-8.40.tar.gz
#wget https://github.com/openssl/openssl/archive/OpenSSL_1_0_1u.tar.gz

#Opensuse
#zypper --non-interactive install autoconf gmake gcc make gcc-c++

#Centos(稳定),只需下载openresty-1.11.2.2.tar.gz
yum install bind-utils
yum install -y autoconf gmake gcc make gcc-c++
yum install -y openssl openssl-devel
yum install -y pcre-devel
#yum install -y psmisc net-tools unzip lrzsz iftop
tar zxvf openresty-1.11.2.2.tar.gz
cd  openresty-1.11.2.2 && ./configure && make -j 8 && make install

#ubutnu
apt-get install dnsutils
sudo apt install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential
sudo apt install openssl libssl-dev
sudo apt install libpcre3 libpcre3-dev


#deepin(本地环境)
#比较特殊,需要下载openresty-1.11.2.2 + pcre-8.40 + openssl-1.0.1u
tar zxvf openresty-1.11.2.2.tar.gz
tar zxvf pcre-8.40.tar.gz
tar zxvf openssl-1.0.1u.tar.gz
cd  openresty-1.11.2.2
./configure --prefix=/usr/local/openresty --with-pcre=/home/kkk/pcre-8.40 --with-openssl=/home/kkk/openssl-1.0.1u
make -j 8 && sudo make install

关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9
扫一扫关注公众号添加购物返利助手,领红包
Comments are closed.

推荐使用阿里云服务器

超多优惠券

服务器最低一折,一年不到100!

朕已阅去看看