标签:log ssh 记录 方法 locate blog logs usr conf
记录一下配置mha的时候遇到的错误,使用perl模块发送邮件的时候报以下错误:
# masterha_check_ssh --conf=/data/mha/app1.cnf Can‘t locate Log/Dispatch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/MHA/SSHCheck.pm line 29. BEGIN failed--compilation aborted at /usr/local/share/perl5/MHA/SSHCheck.pm line 29. Compilation failed in require at /usr/local/bin/masterha_check_ssh line 25. BEGIN failed--compilation aborted at /usr/local/bin/masterha_check_ssh line 25.
解决方法:
yum install perl-Mail-Sender
yum install perl-Log-Dispatch
Can't locate Log/Dispatch.pm in @INC
标签:log ssh 记录 方法 locate blog logs usr conf
原文地址:http://www.cnblogs.com/topicjie/p/6993274.html