接上篇: http://www.cnblogs.com/antarctican/p/3714422.html
一、 安装 Mysql 5.1.73. 官方:http://dev.mysql.com/downloads/file.php?id=450523
http://cdn.mysql.com/Downloads/MySQL-5.1/mysql-5.1.73-linux-i686-glibc23.tar.gz
4. 安装 tengine 2.0.4
查看 version时, 提示 libssl.so.1.0.0 找不到
1
2
|
[root@localhost tengine]# sbin/nginx -V sbin/nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory |
ldd 查看 ,为 not found
1
2
3
4
5
6
7
8
9
10
11
12
|
[root@localhost tengine]# ldd sbin/nginx linux-gate.so.1 => (0x00880000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00f05000)
libdl.so.2 => /lib/libdl.so.2 (0x001ef000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00a0b000)
libpcre.so.0 => /lib/libpcre.so.0 (0x00c21000)
libssl.so.1.0.0 => not found
libcrypto.so.1.0.0 => not found
libz.so.1 => /lib/libz.so.1 (0x001f4000)
libc.so.6 => /lib/libc.so.6 (0x00208000)
/lib/ld-linux.so.2 (0x00d5b000)
libfreebl3.so => /lib/libfreebl3.so (0x00748000)
|
这时在 /etc/ld.so.conf.d/ 新建一个.conf 的文件,内容为 libssl 的位置:
1
|
[root@localhost tengine]# cd /etc/ld.so.conf.d |
1
|
[root@localhostld.so.conf.d]# touch www-libs.conf // *.conf 自动载入 |
1
|
[root@localhostld.so.conf.d]# echo ‘/usr/local/lib‘ > www-libs.conf // 注:/usr/local/lib 为我 libssl.so.1.0.0 的位置 |
1
|
[root@localhostld.so.conf.d]# ldconfig |
现在可以看到 nginx的版本及模块信息了