linux-tutorial/codes/linux/ops/sys/stop-firewall.sh

11 lines
347 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#!/usr/bin/env bash
###################################################################################
# 彻底关闭防火墙
# 参考https://www.cnblogs.com/moxiaoan/p/5683743.html
# Author: Zhang Peng
###################################################################################
systemctl stop firewalld
systemctl disable firewalld