openresty 安装

原创
2018/02/27 18:04
阅读数 250

#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

展开阅读全文
打赏
0
0 收藏
分享
加载中
更多评论
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部