snmp安装

net-snmp安装,通过镜像找到安装包安装
rpm -ivh net-snmp-libs-5.5-49.el6.x86_64.rpm
rpm -ivh net-snmp-perl-5.5-49.el6.x86_64.rpm
rpm -ivh net-snmp-utils-5.5-49.el6.x86_64.rpm
rpm -ivh net-snmp-5.5-49.el6.x86_64.rpm

 

 

 
修改配置文件vim /etc/snmp/snmpd.conf

 

 

启动服务service snmpd start
停止服务service snmpd stop
查看服务状态service snmpd status
关闭防火墙service iptables stop
验证是否安装成功snmpget -v 2c -c public 127.0.0.1 sysName.0

 

 

查看161端口是否开启 netstat -an |grep 161

 

 

 

posted on 2021-12-03 16:52  seamy  阅读(295)  评论(0编辑  收藏  举报