mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
24 lines
738 B
Bash
24 lines
738 B
Bash
#!/usr/bin/env bash
|
||
|
||
# ---------------------------------------------------------------------------------
|
||
# 控制台颜色
|
||
BLACK="\033[1;30m"
|
||
RED="\033[1;31m"
|
||
GREEN="\033[1;32m"
|
||
YELLOW="\033[1;33m"
|
||
BLUE="\033[1;34m"
|
||
PURPLE="\033[1;35m"
|
||
CYAN="\033[1;36m"
|
||
RESET="$(tput sgr0)"
|
||
# ---------------------------------------------------------------------------------
|
||
|
||
###################################################################################
|
||
# 关闭防火墙
|
||
# 参考:https://www.cnblogs.com/moxiaoan/p/5683743.html
|
||
# @author: Zhang Peng
|
||
###################################################################################
|
||
|
||
systemctl stop firewalld
|
||
systemctl disable firewalld
|
||
printf "\n${GREEN}<<<<<<<< 已关闭防火墙${RESET}\n"
|