1、報錯讓我安裝openssl,或者制定openssl源碼路徑
2、離線安裝一個openssl源碼包
1、從官網(wǎng)下載一個openssl源碼包,給它放到自己指定的一個目錄里文章來源:http://www.zghlxwxcb.cn/news/detail-673453.html
cd /usr/local/
wget https://www.openssl.org/source/openssl-1.1.1f.tar.gz --no-check-certificate
2、解壓openssl包
tar -zxvf openssl-1.1.1f.tar.gz
3、 進入nginx源碼包安裝目錄,重新編譯,指定openssl路徑文章來源地址http://www.zghlxwxcb.cn/news/detail-673453.html
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-openssl=/usr/local/openssl-1.1.1f
到了這里,關(guān)于nginx在編譯時找不到openssl,通過手動方式指定openssl路徑的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!