1、首先进入nginx解压目录,
执行命令
./configure --prefix=/usr/local/nginx/ --add-module=/usr/local/share/fastdfs-nginx-module/src --with-pcre=/usr/local/share/pcre-8.39 --with-zlib=/usr/local/zlib-1.2.8 --with-openssl=/usr/local/openssl-1.0.1t --with-http_ssl_module
然后用make && make install 编译
但是报错如下:
make[1]: Entering directory `/root/nginx-0.7.61'
cd /server/openssl \&& make clean \
&& ./config --prefix=/server/openssl/openssl no-shared no-threads \
&& make \
&& make install
make[2]: Entering directory `/server/openssl'
make[2]: *** No rule to make target `clean'. Stop.
make[2]: Leaving directory `/server/openssl'
make[1]: *** [/server/openssl/openssl/include/openssl/ssl.h] Error 2
make[1]: Leaving directory `/root/nginx-0.7.61'
make: *** [build] Error 2
问题来了,为什么会这样呢,首先分析
./configure --prefix=/usr/local/nginx/ --add-module=/usr/local/share/fastdfs-nginx-module/src --with-pcre=/usr/local/share/pcre-8.39 --with-zlib=/usr/local/