mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add linux version of band check app; add web version of band check app
This commit is contained in:
commit
237fb13e1b
35 changed files with 1966 additions and 218 deletions
|
@ -4,7 +4,9 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本";
|
|||
|
||||
cmd="sudo ./objs/nginx/sbin/nginx"
|
||||
echo "启动NGINX(HLS服务):$cmd"
|
||||
pids=`ps aux|grep nginx|grep process|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; sudo kill -s SIGKILL $pid; done
|
||||
if [[ -f ./objs/nginx/logs/nginx.pid ]]; then
|
||||
pids=`cat ./objs/nginx/logs/nginx.pid`; for pid in $pids; do echo "结束现有进程:$pid"; sudo kill -s SIGTERM $pid; done
|
||||
fi
|
||||
sudo ./objs/nginx/sbin/nginx
|
||||
ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动NGINX(HLS服务)失败"; exit $ret; fi
|
||||
|
||||
|
|
|
@ -31,12 +31,6 @@ bash scripts/_step.start.api.server.sh; ret=$?; if [[ 0 -ne $ret ]]; then exit $
|
|||
|
||||
# step 8: add server ip to client hosts as demo.
|
||||
ip=`ifconfig|grep "inet"|grep "addr"|grep "Mask"|grep -v "127.0.0.1"|awk 'NR==1 {print $2}'|awk -F ':' '{print $2}'`
|
||||
echo -e "${GREEN}SRS系统开发环境启动成功${BLACK}"
|
||||
echo -e "${BLACK}播放器演示:${BLACK}"
|
||||
echo -e "${RED} http://$ip/players/srs_player.html?vhost=players${BLACK}"
|
||||
echo -e "${BLACK}编码器演示:${BLACK}"
|
||||
echo -e "${RED} http://$ip/players/srs_publisher.html?vhost=players${BLACK}"
|
||||
echo -e "${BLACK}视频会议演示:${BLACK}"
|
||||
echo -e "${RED} http://$ip/players/srs_chat.html?vhost=players${BLACK}"
|
||||
echo -e "${BLACK}服务器测速演示:${BLACK}"
|
||||
echo -e "${RED} http://$ip/players/srs_bwt.html?vhost=players${BLACK}"
|
||||
echo -e "${GREEN}SRS系统开发环境启动成功。演示:${BLACK}"
|
||||
echo -e "${RED} http://$ip${BLACK}"
|
||||
echo -e "${RED} http://$ip:8085/players/index.html${BLACK}"
|
||||
|
|
|
@ -45,3 +45,4 @@ cat<<END
|
|||
END
|
||||
echo -e "${GREEN}演示地址:${BLACK}"
|
||||
echo -e "${RED} http://$ip${BLACK}"
|
||||
echo -e "${RED} http://$ip:8085${BLACK}"
|
||||
|
|
|
@ -11,7 +11,9 @@ pids=`ps aux|grep srs|grep "./objs"|grep "srs.19350.conf"|awk '{print $2}'`; for
|
|||
# step 4(optinal): start nginx for HLS
|
||||
echo "停止NGINX(HLS服务)"
|
||||
ps aux|grep nginx|grep process
|
||||
pids=`ps aux|grep nginx|grep process|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; sudo kill -s SIGKILL $pid; done
|
||||
if [[ -f ./objs/nginx/logs/nginx.pid ]]; then
|
||||
pids=`cat ./objs/nginx/logs/nginx.pid`; for pid in $pids; do echo "结束现有进程:$pid"; sudo kill -s SIGTERM $pid; done
|
||||
fi
|
||||
|
||||
# step 5(optinal): start http hooks for srs callback
|
||||
echo "停止API服务器"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue