Errores al arrancar nginx por primera vez
This commit is contained in:
parent
2ac41f390a
commit
f018b3d958
5
dev.sh
5
dev.sh
|
@ -12,11 +12,12 @@ case "$1" in
|
||||||
start|"")
|
start|"")
|
||||||
$0 stop
|
$0 stop
|
||||||
echo "Starting nginx."
|
echo "Starting nginx."
|
||||||
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix"
|
mkdir -p "$nginxPrefix/temp"
|
||||||
|
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" 2>> /dev/null
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo "Stoping nginx."
|
echo "Stoping nginx."
|
||||||
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop
|
"$nginxBin" -c "$nginxConf" -p "$nginxPrefix" -s stop 2>> /dev/null
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: `basename "$0"` [start|stop]"
|
echo "Usage: `basename "$0"` [start|stop]"
|
||||||
|
|
Loading…
Reference in New Issue