run.sh 270 B

1234567891011121314
  1. NGX_BIN=/home/jsproxy/openresty/nginx/sbin/nginx
  2. # local test
  3. if [ ! -f $NGX_BIN ]; then
  4. NGX_BIN=/usr/local/openresty/nginx/sbin/nginx
  5. fi
  6. CUR_DIR=$(cd `dirname $0` && pwd)
  7. if [ $1 ]; then
  8. PARAM="-s $1"
  9. fi
  10. $NGX_BIN -c $CUR_DIR/nginx.conf -p $CUR_DIR/nginx $PARAM