Run the following commands to install net-snmp quickly and securely.
Copy codeThe Code is as follows: yum install net-snmp
Yum install net-snmp-utils
First, use the yum command to install net-snmp and net-snmo-utils.Copy codeThe Code is as follows: rm/etc/snmp/snmpd. conf
Vi/etc/snmp/snmpd. conf
Delete the default snmpd. conf file and write the following content.Copy codeThe Code is as follows: rouser sudu auth
"Sudu" is your authenticated user name. "auth" indicates read-only
Create the/var/net-snmp/directory and create the/var/net-snmp/snmpd. conf file.Copy codeThe Code is as follows: mkdir/var/net-snmp/
Vi/var/net-snmp/snmpd. conf
Finally, write the following content to/var/net-snmp/snmpd. conf:Copy codeThe Code is as follows: createUser sudu MD5 mypassword
"Sudu" is your authentication user name, and "mypassword" is your authentication password.
Finally, run the following command to enable the snmpd service and go to monitoring port 161 of udp on your server ~