[root@bavdu shell_scripts]# vim system_tools#!/usr/bin/env bashcat <<-EOF +-------------------------------------------------------------------------+ | System_tools V1.0 | +-------------------------------------------------------------------------+| a. Stop And Disabled Firewalld. || b. Disabled SELinux Secure System. || c. Install Apache Service. || d. Quit | +-------------------------------------------------------------------------+ EOFecho "Please input your select: " && read varcase "$var" in "a") systemctl stop firewalld && systemctl disable firewalld ;; "b") setenforce 0 ;; "c") yum -y install httpd httpd-tools ;; "d") exit ;; ) printf "请按照上方供应的选项输入!!!\n" ;; esac
