mirror of
https://github.com/EtherDream/jsproxy
synced 2024-11-22 01:49:01 +00:00
15 lines
309 B
Bash
Executable File
15 lines
309 B
Bash
Executable File
#
|
|
# 该脚本封装 nginx 调用,可在任意位置执行
|
|
#
|
|
# 启动:./run.sh
|
|
# 重启:./run.sh -s reload
|
|
# 关闭:./run.sh -s quit
|
|
#
|
|
NGX_BIN=~/openresty/nginx/sbin/nginx
|
|
CUR_DIR=$(cd `dirname $0` && pwd)
|
|
|
|
if [ $1 ]; then
|
|
PARAM="-s $1"
|
|
fi
|
|
|
|
$NGX_BIN -c $CUR_DIR/nginx.conf -p $CUR_DIR/nginx $PARAM |