openresty 安装,


为什么80%的码农都做不了架构师?>>>   

#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

转载于:https://my.oschina.net/jk409/blog/1625423

相关内容

    暂无相关文章