启动SNMP服务
/etc/init.d/snmpd start
出现以下报错信息
[....] Starting snmpd (via systemctl): snmpd.serviceJob for snmpd.service failed because the control process exited with error code. See "systemctl status snmpd.service" and "journalctl -xe" for details.failed!
查看一下SNMP服务状态
systemctl status snmpd
出现以下报错
可能是系统关闭了相关ipv6的服务
解决办法:
修改配置文件
vim /etc/snmp/snmpd.conf
找到agentAddress udp:161,udp6:[::1]:161
并注释
在下面添加agentAddress udp:161
然后保存退出
再次启动SNMP服务
/etc/init.d/snmpd start
再次查看一下SNMP服务状态
systemctl status snmpd
到此结束