openresty編譯安裝


 

openresty官網:http://www.openresty.org/

1.安裝依賴包

yum install -y gcc gcc-c++ zlib-devel pcre-devel openssl-devel readline-devel

2.安裝openresty

#解壓壓縮包
tar
-zxvf openresty-1.13.6.2.tar.gz
#編譯軟件 cd openresty
-1.13.6.2 ./configure --prefix=/data/server/openresty-1.13.6.2 \ --user=www --group=www \ --with-http_ssl_module \ --with-http_flv_module \ --with-http_stub_status_module \ --with-http_gzip_static_module \ --with-pcre \ --with-http_realip_module
#安裝軟件
gmake && gmake install
#創建軟鏈接
cd /data/server/openresty-1.13.6.2
ln -sf openresty-1.13.6.2 openresty

 

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM