From f578feed57b1b9f5a0acb66fa10047c308cd2935 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Mon, 11 Jan 2021 17:17:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init.sh b/init.sh index c9d9588..66bc9b8 100644 --- a/init.sh +++ b/init.sh @@ -1,6 +1,14 @@ #!/bin/bash ##### 新系统初始化 ##### +#关闭selinux +function close_selinux() { + #临时关闭 + setenforce 0 + #永久关闭 + sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config +} + #同步时间 function sync_time() { echo '正在执行时间同步......' @@ -53,6 +61,8 @@ function insrall_bbr() { #重启服务器 reboot } + +close_selinux sync_time change_port insrall_bbr \ No newline at end of file