标签:nginx int curl space awk sed tps == bin
#!/bin/sh
port=`nl /usr/local/openresty/nginx/conf/nginx.conf | sed -n ‘/listen/p‘ | awk ‘NR==1{print $3}‘ | sed ‘s/;//g‘`
curl -g http://127.0.0.1:${port}/dsideal_yy/space/lean_stat/save_stat
curl -g http://127.0.0.1:${port}/dsideal_yy/space/class_record/timer_count_data
# 判断一下是不是https开启
nl /usr/local/openresty/nginx/conf/nginx.conf | sed -n ‘/listen/p‘ | sed -n ‘/443/p‘
标签:nginx int curl space awk sed tps == bin
原文地址:http://www.cnblogs.com/littlehb/p/7745874.html