fix: 修正nginx脚本问题

main
huangfeng 1 year ago
parent 5f2fe34b6b
commit 37db2e62df

@ -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 ""
Loading…
Cancel
Save