背景:
我在源碼安裝nginx的時(shí)候進(jìn)行 ./configure 構(gòu)建結(jié)果包錯(cuò),說(shuō)需要OpenSSL library
1、在有網(wǎng)絡(luò)的情況下,在線安裝
yum -y install openssl openssl-devellibtool
2、在無(wú)網(wǎng)絡(luò)的情況下,下載openssl上傳到服務(wù)器,在編譯的時(shí)候指定路徑
Openssl 下載地址
這次下載使用openssl-1.0.2k版本
tar -zxvf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k
mkdir /usr/local/openssl
./config --prefix=/usr/local/openssl
make && make install
安裝完可以將openssl加入到環(huán)境變量
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-556320.html
在nginx編譯時(shí)加上參數(shù) --openssl=/usr/local/openssl 即可文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-556320.html
./configure --openssl=/usr/local/openssl
到了這里,關(guān)于SSL modules require the OpenSSL library的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!