一、普通安裝
安裝zlib 庫
yum install zlib-devel
pcre
下載pcre并解壓
tar -xvf pcre-8.35.tar.gz
配置安裝
下載nginx并解壓,在解壓目錄下執(zhí)行命令
./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
標簽:
- 版權(quán)所有:奇站網(wǎng)絡(luò) 轉(zhuǎn)載請注明出處
- 廈門奇站網(wǎng)絡(luò)科技有限公司,專業(yè)提供網(wǎng)站建設(shè),響應式網(wǎng)站建設(shè),小程序開發(fā),系統(tǒng)定制開發(fā)。
- 軟件開發(fā)咨詢熱線:吳小姐 13313868605