1. ubuntu :
apt-get install snmp snmpd
vim /etc/default/snmpd //将此配置文件中127.0.0.1 删掉。
/etc/init.d/snmpd restart
--------------------------------------------------------
2. redhat/centos
yum install -y net-snmp net-snmp-utils
查看已安装的版本 snmpd -v
vi /etc/snmp/snmpd.conf
更改 com2sec notConfigUser default public
改为 com2sec notConfigUser 监控端IP public
更改access notConfigGroup "" any noauth exact systemview none none
改为access notConfigGroup "" any noauth exact all none none
将 #view all included .1 80 前面的 # 注释去掉
service snmpd restart ------>端口:161