From 5f2fe34b6bca7941c7e98940fb267dbf8427eb15 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Fri, 15 Mar 2024 09:10:50 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 7 +++++++ ncac/setup.sh | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7ebe3b --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar diff --git a/ncac/setup.sh b/ncac/setup.sh index 5308974..d97516e 100644 --- a/ncac/setup.sh +++ b/ncac/setup.sh @@ -48,8 +48,10 @@ installNginx(){ echo ${NGX_HOME}" installed." sed -i 's#/etc/nginx/conf.d#'${BASE_DIR}'/conf#g' ${NGX_HOME}/conf/nginx.conf - echo ${NGX_HOME}'/sbin/nginx -c '${NGX_HOME}'/conf/nginx.conf' > ${BIN_DIR}/startNginx.sh - echo ${NGX_HOME}'/sbin/nginx -s stop' > ${BIN_DIR}/stopNginx.sh + echo ' echo "Starting nginx"' > ${BIN_DIR}/startNginx.sh + echo ${NGX_HOME}'/sbin/nginx -c '${NGX_HOME}'/conf/nginx.conf' >> ${BIN_DIR}/startNginx.sh + echo ' echo "Stopping nginx"' > ${BIN_DIR}/stopNginx.sh + echo ${NGX_HOME}'/sbin/nginx -s stop' >> ${BIN_DIR}/stopNginx.sh chmod +x ${BIN_DIR}/startNginx.sh chmod +x ${BIN_DIR}/stopNginx.sh else