Centos安装php snmp扩展

发布时间:2021-09-22

  1.基础环境准备

  yuminstallnet-snmpphp-snmpnet-snmp-devel2.进入PHP源码包
3.进入ext文件夹下的snmp文件夹
4.设置配置文件

  phpize./configure--with-php-config=/usr/local/php/bin/php-config--with-snmp5.编译

  makemakeinstall6.将模块增加进配置文件

  7.重启服务

  


  

注册即送1000元现金券