export JAVA_HOME=/etc/env/jdk1.8
export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin


./configure --prefix=/usr/local/nginx


make

make install

ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/