分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow
[root@azure_test_dbm1_3_111 soft]#/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
/usr/sbin/zabbix_agentd: error whileloading shared libraries: libodbc.so.2: cannot open shared object file: No suchfile or directory
[root@azure_test_dbm1_3_111 soft]#
[root@azure_test_dbm1_3_111 soft]# yum -yinstall unixODBC*
Loaded plugins: refresh-packagekit,security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package unixODBC.x86_640:2.2.14-14.el6 will be installed
--> Finished Dependency Resolution
Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:
……
1. You have an upgrade for unixODBC which is missing some
dependency that another package requires. Yum is trying to
solve this by installing an older version of unixODBC of the
安装4个rpm包
[root@azure_test_dbm1_3_111unixODBC]# ll
total 3208
-rw-r--r--. 1 oracle oinstall 851497 Jan19 2007 unixODBC-2.2.11-7.1.i386.rpm
-rw-r--r--. 1 oracle oinstall 856752 Jan24 2007 unixODBC-2.2.11-7.1.x86_64.rpm
-rw-r--r--. 1 oracle oinstall 754208 Jan19 2007unixODBC-devel-2.2.11-7.1.i386.rpm
-rw-r--r--. 1 oracle oinstall 812318 Jan19 2007unixODBC-devel-2.2.11-7.1.x86_64.rpm
[root@azure_test_dbm1_3_111 unixODBC]# rpm-ivh * --nodeps --force
warning: unixODBC-2.2.11-7.1.i386.rpm:Header V3 DSA/SHA1 Signature, key ID 37017186: NOKEY
Preparing... ########################################### [100%]
1:unixODBC ########################################### [ 25%]
2:unixODBC ########################################### [ 50%]
3:unixODBC-devel ########################################### [ 75%]
4:unixODBC-devel ########################################### [100%]
[root@azure_test_dbm1_3_111 unixODBC]#
启动失败:
[root@azure_test_dbm1_3_111 soft]#/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
/usr/sbin/zabbix_agentd: error whileloading shared libraries: libodbc.so.2: cannot open shared object file: No suchfile or directory
[root@azure_test_dbm1_3_111 soft]#
先搜索libodbc.so的文件:
[root@azure_test_dbm1_3_111 soft]# find /-name libodbc.so*
/tmp/libodbc.so.2
/usr/lib64/libodbc.so
/usr/lib64/libodbc.so.1.0.0
/usr/lib64/libodbc.so.1
/usr/lib/libodbc.so
/usr/lib/libodbc.so.1.0.0
/usr/lib/libodbc.so.1
查看/usr/lib/libodbc.so文件,看到是由libodbc.so.1.0.0做的软连接
[root@azure_test_dbm1_3_111 soft]# ll/usr/lib/libodbc.so
lrwxrwxrwx. 1 root root 16 May 11 21:42/usr/lib/libodbc.so -> libodbc.so.1.0.0
查看到libodbc.so.1.0.0是实际文件,检索到有2个文件存放目录
[root@azure_test_dbm1_3_111 soft]# find /-name libodbc.so.1.0.0
/usr/lib64/libodbc.so.1.0.0
/usr/lib/libodbc.so.1.0.0
然后尝试将这个libodbc.so.1.0.0做成libodbc.so.2的软连接试试看
[root@azure_test_dbm1_3_111soft]# ln -s /usr/lib64/libodbc.so.1.0.0 /usr/lib64/libodbc.so.2
[root@azure_test_dbm1_3_111soft]# ln -s /usr/lib/libodbc.so.1.0.0 /usr/lib/libodbc.so.2
[root@azure_test_dbm1_3_111 soft]#
[root@azure_test_dbm1_3_111 soft]#/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
[root@azure_test_dbm1_3_111 soft]#
[root@azure_test_dbm1_3_111 soft]# ps-eaf|grep zabbix
zabbix 34793 1 0 21:46 ? 00:00:00 /usr/sbin/zabbix_agentd -c/etc/zabbix/zabbix_agentd.conf
zabbix 34794 34793 0 21:46 ? 00:00:00 /usr/sbin/zabbix_agentd:collector [idle 1 sec]
zabbix 34795 34793 0 21:46 ? 00:00:00 /usr/sbin/zabbix_agentd:listener #1 [waiting for connection]
zabbix 34796 34793 0 21:46 ? 00:00:00 /usr/sbin/zabbix_agentd:listener #2 [waiting for connection]
zabbix 34797 34793 0 21:46 ? 00:00:00 /usr/sbin/zabbix_agentd:listener #3 [waiting for connection]
zabbix 34798 34793 0 21:46 ? 00:00:00 /usr/sbin/zabbix_agentd:active checks #1 [idle 1 sec]
root 34807 32946 0 21:47 pts/0 00:00:00 grep zabbix
[root@azure_test_dbm1_3_111 soft]#
分享一下我老师大神的人工智能教程。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow