From 47f28c600baa9a5c397f66f46d4ef6f21e4d1742 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 23 Aug 2022 10:42:37 +0800 Subject: [PATCH] fix bug --- init_debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init_debian.sh b/init_debian.sh index e0a7ae6..061d86a 100644 --- a/init_debian.sh +++ b/init_debian.sh @@ -28,7 +28,7 @@ init_soft(){ #FirewallBackend # Selects the firewall backend implementation. # Choices are: # - nftables (default) # - iptables (iptables, ip6tables, ebtables and ipset) FirewallBackend=iptables #针对上面的错误,需要将iptables更换为nftables - set -i "s/FirewallBackend=iptables/FirewallBackend=nftables/g" /etc/firewalld/firewalld.conf + sed -i "s/FirewallBackend=iptables/FirewallBackend=nftables/g" /etc/firewalld/firewalld.conf #放行常见端口 firewall-cmd --zone=public --add-port=80/tcp --permanent