一(yī)、普通安裝
安裝zlib 庫
yum install zlib-devel
pcre
下(xià)載pcre并解壓
tar -xvf pcre-8.35.tar.gz
配置安裝
下(xià)載nginx并解壓,在解壓目錄下(xià)執行命令
./configure --prefix=/opt/nginx --with-pcre=/opt/pcre-8.35/
make
make install
二、支持https
指定模塊
./configure --prefix=/opt/nginx --with-pcre=/opt/pcre-8.35/ --with-http_ssl_module
報錯
1、報錯You need a C++ compiler for C++ support
yum install -y gcc gcc-c++
2、報錯SSL modules require the OpenSSL library
yum -y install openssl openssl-devel
- 版權所有:奇站網絡 轉載請注明出處
- 廈門市中資源網絡服務有限公司,專業提供網站建設,響應式網站建設,小(xiǎo)程序開(kāi)發,系統定制開(kāi)發。
- 軟件開(kāi)發咨詢熱線:吳小(xiǎo)姐 13313868605