现在的位置: 首页 > 综合 > 正文

Centos yum安装snmp

2018年03月22日 ⁄ 综合 ⁄ 共 458字 ⁄ 字号 评论关闭

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 –list|grep snmpd
snmpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

抱歉!评论已关闭.