rhel6.2上启动nagios报错----之解决方法

/data0/software/nagios/bin/nrpe -c /data0/software/nagios/etc/nrpe.cfg    //报错

报错信息:error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
                    error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory

解决办法:
                   从rhel5.X的版本上copy这两个文件(libcrypto.so.0.9.8e、libssl.so.0.9.8e)到rhel6.2上

scp      rhel5.X:/lib/libcrypto.so.0.9.8e             rhel6.2:/lib
scp      rhel5.X:/lib/libssl.so.0.9.8e                  rhel6.2:/lib
scp      rhel5.X:/lib64/libcrypto.so.0.9.8e         rhel6.2:/lib64
scp      rhel5.X:/lib64/libssl.so.0.9.8e              rhel6.2:/lib64

RHEL6.2:
cd    /lib/
ln   -s    libcrypto.so.0.9.8e      libcrypto.so.6
ln   -s    libssl.so.0.9.8e            libssl.so.6

cd   /lib64
ln   -s    libcrypto.so.0.9.8e      libcrypto.so.6
ln   -s    libssl.so.0.9.8e            libssl.so.6


/data0/software/nagios/bin/nrpe -c /data0/software/nagios/etc/nrpe.cfg    //正常

你可能感兴趣的:(操作系统)