1:Atlas的安装
https://github.com/Qihoo360/Atlas/wiki/Atlas的安装
2:
[root@localhost bin]# ./mysql-proxyd test start
/usr/local/mysql-proxy/bin/mysql-proxy: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
error: failed to start MySQL-Proxy of test
什么?缺少 libcrypto.so.6?
3:直接 yum install openssl*
寻找包含 libcrypto.so.6 的安装包,运行:
yum provides */libcrypto.so.6
发现 openssl098e-0.9.8e-17.el6.centos.2.x86_64 yum install openssl098e-0.9.8e-17.el6.centos.2.x86_64
4:查看服务运行所以来的包
[root@localhost bin]# ldd mysql-proxy
linux-vdso.so.1 => (0x00007ffff4df7000)
libmysql-chassis.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis.so.0 (0x00007f40c8038000)
libmysql-proxy.so.0 => /usr/local/mysql-proxy/lib/libmysql-proxy.so.0 (0x00007f40c7e14000)
libsql-tokenizer.so.0 => /usr/local/mysql-proxy/lib/libsql-tokenizer.so.0 (0x00007f40c7c05000)
libevent-2.0.so.5 => /usr/local/mysql-proxy/lib/libevent-2.0.so.5 (0x00007f40c79c2000)
liblua-5.1.so => /usr/local/mysql-proxy/lib/liblua-5.1.so (0x00007f40c7797000)
libgmodule-2.0.so.0 => /usr/local/mysql-proxy/lib/libgmodule-2.0.so.0 (0x00007f40c7594000)
libgthread-2.0.so.0 => /usr/local/mysql-proxy/lib/libgthread-2.0.so.0 (0x00007f40c7393000)
libmysql-chassis-timing.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-timing.so.0 (0x00007f40c718f000)
libmysql-chassis-glibext.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-glibext.so.0 (0x00007f40c6f8d000)
libm.so.6 => /lib64/libm.so.6 (0x00007f40c6cfb000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f40c6af6000)
libcrypto.so.6 => not found
libjemalloc.so.1 => /usr/local/mysql-proxy/lib/libjemalloc.so.1 (0x00007f40c68bc000)
libglib-2.0.so.0 => /usr/local/mysql-proxy/lib/libglib-2.0.so.0 (0x00007f40c659e000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f40c6381000)
librt.so.1 => /lib64/librt.so.1 (0x00007f40c6179000)
libc.so.6 => /lib64/libc.so.6 (0x00007f40c5de4000)
/lib64/ld-linux-x86-64.so.2 (0x00007f40c8247000)
libcrypto.so.6 => not found
libcrypto.so.6 => not found
libcrypto.so.6 => not found
libcrypto.so.6 => not found
libcrypto.so.6 => not found
还是not found
5:
[root@localhost bin]# find / -name libcrypto.so.6
/usr/lib64/libcrypto.so.6
/usr/lib/libcrypto.so.6
[root@localhost bin]# ll /usr/lib64/libcrypto.so.6
lrwxrwxrwx. 1 root root 19 May 11 23:22 /usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e
[root@localhost bin]# ll /usr/lib/libcrypto.so.6
lrwxrwxrwx. 1 root root 19 May 11 19:32 /usr/lib/libcrypto.so.6 -> libcrypto.so.0.9.8e
手动创建连接文件
[root@localhost bin]# ln -s libcrypto.so.0.9.8e libcrypto.so.6
[root@localhost bin]# ls
encrypt libcrypto.so.6 mysql-proxy mysql-proxyd VERSION
[root@localhost bin]# ldd mysql-proxy
linux-vdso.so.1 => (0x00007fffd55ff000)
libmysql-chassis.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis.so.0 (0x00007f3cfdaa3000)
libmysql-proxy.so.0 => /usr/local/mysql-proxy/lib/libmysql-proxy.so.0 (0x00007f3cfd87f000)
libsql-tokenizer.so.0 => /usr/local/mysql-proxy/lib/libsql-tokenizer.so.0 (0x00007f3cfd670000)
libevent-2.0.so.5 => /usr/local/mysql-proxy/lib/libevent-2.0.so.5 (0x00007f3cfd42d000)
liblua-5.1.so => /usr/local/mysql-proxy/lib/liblua-5.1.so (0x00007f3cfd202000)
libgmodule-2.0.so.0 => /usr/local/mysql-proxy/lib/libgmodule-2.0.so.0 (0x00007f3cfcfff000)
libgthread-2.0.so.0 => /usr/local/mysql-proxy/lib/libgthread-2.0.so.0 (0x00007f3cfcdfe000)
libmysql-chassis-timing.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-timing.so.0 (0x00007f3cfcbfa000)
libmysql-chassis-glibext.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-glibext.so.0 (0x00007f3cfc9f8000)
libm.so.6 => /lib64/libm.so.6 (0x00007f3cfc766000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f3cfc561000)
libcrypto.so.6 => /usr/lib64/libcrypto.so.6 (0x00007f3cfc205000)
libjemalloc.so.1 => /usr/local/mysql-proxy/lib/libjemalloc.so.1 (0x00007f3cfbfcb000)
libglib-2.0.so.0 => /usr/local/mysql-proxy/lib/libglib-2.0.so.0 (0x00007f3cfbcad000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3cfba90000)
librt.so.1 => /lib64/librt.so.1 (0x00007f3cfb888000)
libc.so.6 => /lib64/libc.so.6 (0x00007f3cfb4f3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3cfdcb2000)
libz.so.1 => /lib64/libz.so.1 (0x0000003b3ac00000)
[root@localhost bin]# ./mysql-proxyd test start
OK: MySQL-Proxy of test is started