1.安装 snmp服务
[root@localhost] yum install -y net-snmp net-snmp-utils
2.配置snmp服务
第一步:
(yum安装snmpd的配置文件为/etc/snmp/snmpd.conf ,一份非常详细的文档,先备份一份snmpd.conf)
[root@localhost] mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
3.运行snmp服务
[root@localhost] service snmpd start
Starting snmpd: [ OK ]
4.设置成开机自动运行snmpd服务
[root@localhost] chkconfig snmpd on[root@localhost] chkconfig �Clist|grep snmpdsnmpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
原文链接:https://www.f2er.com/centos/379543.html