--with-md5=/root \
--with-http_ssl_module \
--with-openssl=/root/openssl-0.9.8k \
(补充 md5跟sha1不能一起装)
nginx版本/nginx-0.7.61
如需要增加ssl,必须将md5和openssl装上
另外openssl是源码解压包,不能是安装后的软件
不然提示找不到目录,无法执行
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
另外参考了linuxtone成员的意见,问题的原因是因为我的openssl装不好,而导致nginx寻找失败,会执行自行重新安装
root@yuan:~# ldd /server/nginx/sbin/nginx
linux-gate.so.1 => (0xffffe000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0xb8061000)
libpcre.so.0 => /usr/lib/libpcre.so.0 (0xb803d000)
libdl.so.2 => /lib/libdl.so.2 (0xb8039000)
libz.so.1 => /usr/lib/libz.so.1 (0xb8025000)
libc.so.6 => /lib/libc.so.6 (0xb7ed9000)
/lib/ld-linux.so.2 (0xb80a1000)
现在就一致了,因为我的openssl已经因为安装失败,而导致nginx自行重新安装过,如果选择自行编译安装openssl的话,要ldconfig来更新一下库的路径
阅读(792) | 评论(1) | 转发(0) |