環境
OS - CentOS7
Nginx - nginx-1.7.9
Libressl - libressl-2.1.3
1. ソース
ls
# ls -l nginx-1.7.9.tar.gz libressl-2.1.3.tar.gz
-rw-r--r-- 1 root root 2847182 Jan 22 09:38 libressl-2.1.3.tar.gz
-rw-r--r-- 1 root root 827263 Dec 24 00:38 nginx-1.7.9.tar.gz
2. libressl の make
make
# LVERSION=2.1.3
# tar xzf libressl-${LVERSION}.tar.gz && cd libressl-${LVERSION}
# ./configure
# make
3. nginx の make
make
# cd ..
# NVERSION=1.7.9
# tar xzf nginx-${NVERSION}.tar.gz && cd nginx-${NVERSION}
# ./configure --prefix=/usr/local/nginx-${NVERSION} --with-openssl=../libressl-${LVERSION}
# make
4. 確認
nginx
# objs/nginx -V
nginx version: nginx/1.7.9
built by gcc 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC)
configure arguments: --prefix=/usr/local/nginx-1.7.9 --with-openssl=../libressl-2.1.3