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