From c55f5fde84493af5c4ca8a5c21c5531bd4f58a4c Mon Sep 17 00:00:00 2001 From: toby Date: Fri, 31 Mar 2023 11:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'cg=5Finit=5Fmachine.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit enable snmpd --- cg_init_machine.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cg_init_machine.sh b/cg_init_machine.sh index 2203117..d10539c 100644 --- a/cg_init_machine.sh +++ b/cg_init_machine.sh @@ -37,6 +37,7 @@ fi sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.bak sudo curl -L -o /etc/snmp/snmpd.conf https://git.tobyliu.com/toby/common-tools/raw/branch/main/snmpd.conf sudo systemctl restart snmpd +sudo systemctl enable snmpd if command -v firewall-cmd >/dev/null 2>&1 then