From 13edbac863e437a9d6ec8c05f9cae2efb372af9e Mon Sep 17 00:00:00 2001 From: wulabing <91d$5gKrmVShheJf> Date: Thu, 26 Dec 2019 11:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8D=B8=E8=BD=BD=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cca4137..89092ef 100644 --- a/install.sh +++ b/install.sh @@ -453,7 +453,6 @@ judge "Nginx 配置修改" start_process_systemd(){ systemctl daemon-reload - ### nginx服务在安装完成后会自动启动。需要通过restart或reload重新加载配置 systemctl restart nginx judge "Nginx 启动" systemctl restart v2ray @@ -467,6 +466,11 @@ enable_process_systemd(){ judge "设置 Nginx 开机自启" } +stop_process_systemd(){ + systemctl stop nginx + systemctl stop v2ray +} + #debian 系 9 10 适配 #rc_local_initialization(){ # if [[ -f /etc/rc.local ]];then @@ -626,12 +630,14 @@ bbr_boost_sh(){ bash <(curl -L -s -k "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh") } uninstall_all(){ + stop_process_systemd [[ -f $nginx_systemd_file ]] && rm -f $nginx_systemd_file [[ -f $v2ray_systemd_file ]] && rm -f $v2ray_systemd_file [[ -d $v2ray_bin_file ]] && rm -rf $v2ray_bin_file [[ -d $nginx_dir ]] && rm -rf $nginx_dir [[ -d $v2ray_conf_dir ]] && rm -rf $v2ray_conf_dir [[ -d $web_dir ]] && rm -rf $web_dir + systemctl daemon-reload echo -e "${OK} ${GreenBG} 已卸载,SSL证书文件已保留 ${Font}" } install_v2ray_ws_tls(){