From 37db2e62dfff94e8d41e493522cd83d4e5579258 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Fri, 15 Mar 2024 10:15:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3nginx=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ncac/setup.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ncac/setup.sh b/ncac/setup.sh index d97516e..cf4eebd 100644 --- a/ncac/setup.sh +++ b/ncac/setup.sh @@ -49,9 +49,9 @@ installNginx(){ sed -i 's#/etc/nginx/conf.d#'${BASE_DIR}'/conf#g' ${NGX_HOME}/conf/nginx.conf echo ' echo "Starting nginx"' > ${BIN_DIR}/startNginx.sh - echo ${NGX_HOME}'/sbin/nginx -c '${NGX_HOME}'/conf/nginx.conf' >> ${BIN_DIR}/startNginx.sh + echo ${NGX_HOME}'/sbin/nginx -p '${NGX_HOME}' -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 + echo ${NGX_HOME}'/sbin/nginx -s stop -p '${NGX_HOME} >> ${BIN_DIR}/stopNginx.sh chmod +x ${BIN_DIR}/startNginx.sh chmod +x ${BIN_DIR}/stopNginx.sh else @@ -207,5 +207,6 @@ echo "" sleep 1 echo "tips: 记得运行 source /etc/profile" echo " 使配置生效,之后可以使用${BIN_DIR}目录下的下列脚本" -ls ${BIN_DIR} +cd ${BIN_DIR} +ls echo "" \ No newline at end of file