1.安装 snmp服务
[[email protected]] yum install -y net-snmp net-snmp-utils
2.配置snmp服务
第一步:
(yum安装snmpd的配置文件为/etc/snmp/snmpd.conf ,一份非常详细的文档,先备份一份snmpd.conf)
[[email protected]] mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
3.运行snmp服务
[[email protected]] service snmpd start
Starting snmpd: [ OK ]
4.设置成开机自动运行snmpd服务
[[email protected]] chkconfig snmpd on
[[email protected]] chkconfig –list|grep snmpd
snmpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
时间: 2025-01-16 20:14:19