码迷,mamicode.com
首页 > 其他好文 > 详细

Centos yum安装snmp

时间:2016-12-08 00:17:53      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:centos yum安装snmp

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


Centos yum安装snmp

标签:centos yum安装snmp

原文地址:http://865516915.blog.51cto.com/9037379/1880336

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!