CentOS 6 升級 curl


zabbix 發郵件報 Support for SMTP authentication was not compiled in

其實出現這種問題的原因是我們機器上的 libcurl 版本太低所致。在zabbix的官方說明文檔上我們可以知道:zabbix3.x要想使用SMTP,那么需要7.20.0及以上版本的curl並且zabbix服務端在編譯安裝時需要添加–with-libcurl模塊,官方原文如下:

To make SMTP authentication options available, Zabbix server should be compiled with the –with-libcurl 
compilation option with cURL 7.20.0 or higher.

 

升級 curl 操作如下:

rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-13.rhel6.noarch.rpm

 

vim /etc/yum.repos.d/city-fan.org.repo

 修改所有 enabled=1 to enabled=0

 

yum --enablerepo=city-fan.org update curl

 

升級完成后,需要重新編譯安裝 zabbix

 

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM