正在显示
5 个修改的文件
包含
10 行增加
和
10 行删除
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | src_dir='src' | 2 | src_dir='src' |
3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi | 3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi |
4 | 4 | ||
5 | -cmd="nohup python ./research/api-server/server.py 8085 >./objs/logs/api-server.log 2>&1 &" | 5 | +cmd="nohup python ./research/api-server/server.py 8085 >./objs/api-server.log 2>&1 &" |
6 | echo "启动API服务器:$cmd" | 6 | echo "启动API服务器:$cmd" |
7 | pids=`ps aux|grep python|grep research|grep "api-server"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done | 7 | pids=`ps aux|grep python|grep research|grep "api-server"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done |
8 | -nohup python ./research/api-server/server.py 8085 >./objs/logs/api-server.log 2>&1 & | 8 | +nohup python ./research/api-server/server.py 8085 >./objs/api-server.log 2>&1 & |
9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动API服务器失败"; exit $ret; fi | 9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动API服务器失败"; exit $ret; fi |
10 | 10 | ||
11 | echo "启动API服务器成功" | 11 | echo "启动API服务器成功" |
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | src_dir='src' | 2 | src_dir='src' |
3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi | 3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi |
4 | 4 | ||
5 | -cmd="nohup bash ./scripts/_ffmpeg.demo.sh >./objs/logs/ffmpeg-demo.log 2>&1 &" | 5 | +cmd="nohup bash ./scripts/_ffmpeg.demo.sh >./objs/ffmpeg-demo.log 2>&1 &" |
6 | echo "启动FFMPEG推送demo流(播放器上12路演示):$cmd" | 6 | echo "启动FFMPEG推送demo流(播放器上12路演示):$cmd" |
7 | pids=`ps aux|grep scripts|grep "/_ffmpeg.demo.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done | 7 | pids=`ps aux|grep scripts|grep "/_ffmpeg.demo.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done |
8 | -nohup bash ./scripts/_ffmpeg.demo.sh >./objs/logs/ffmpeg-demo.log 2>&1 & | 8 | +nohup bash ./scripts/_ffmpeg.demo.sh >./objs/ffmpeg-demo.log 2>&1 & |
9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动FFMPEG推送demo流(播放器上12路演示)失败"; exit $ret; fi | 9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动FFMPEG推送demo流(播放器上12路演示)失败"; exit $ret; fi |
10 | 10 | ||
11 | echo "启动FFMPEG推送demo流(播放器上12路演示)成功" | 11 | echo "启动FFMPEG推送demo流(播放器上12路演示)成功" |
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | src_dir='src' | 2 | src_dir='src' |
3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi | 3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi |
4 | 4 | ||
5 | -cmd="nohup bash ./scripts/_ffmpeg.players.sh >./objs/logs/ffmpeg-players.log 2>&1 &" | 5 | +cmd="nohup bash ./scripts/_ffmpeg.players.sh >./objs/ffmpeg-players.log 2>&1 &" |
6 | echo "启动FFMPEG推送players流(播放器上演示用):$cmd" | 6 | echo "启动FFMPEG推送players流(播放器上演示用):$cmd" |
7 | pids=`ps aux|grep scripts|grep "/_ffmpeg.players.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done | 7 | pids=`ps aux|grep scripts|grep "/_ffmpeg.players.sh"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done |
8 | -nohup bash ./scripts/_ffmpeg.players.sh >./objs/logs/ffmpeg-players.log 2>&1 & | 8 | +nohup bash ./scripts/_ffmpeg.players.sh >./objs/ffmpeg-players.log 2>&1 & |
9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动FFMPEG推送players流(播放器上演示用)失败"; exit $ret; fi | 9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动FFMPEG推送players流(播放器上演示用)失败"; exit $ret; fi |
10 | 10 | ||
11 | echo "启动FFMPEG推送players流(播放器上演示用)成功" | 11 | echo "启动FFMPEG推送players流(播放器上演示用)成功" |
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | src_dir='src' | 2 | src_dir='src' |
3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi | 3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi |
4 | 4 | ||
5 | -cmd="nohup ./objs/srs -c conf/demo.19350.conf > ./objs/logs/demo.19350.log 2>&1 &" | 5 | +cmd="nohup ./objs/srs -c conf/demo.19350.conf > ./objs/demo.19350.log 2>&1 &" |
6 | echo "启动SRS转发服务器:$cmd" | 6 | echo "启动SRS转发服务器:$cmd" |
7 | pids=`ps aux|grep srs|grep "./objs"|grep "demo.19350.conf"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done | 7 | pids=`ps aux|grep srs|grep "./objs"|grep "demo.19350.conf"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done |
8 | -nohup ./objs/srs -c conf/demo.19350.conf > ./objs/logs/demo.19350.log 2>&1 & | 8 | +nohup ./objs/srs -c conf/demo.19350.conf > ./objs/demo.19350.log 2>&1 & |
9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动SRS转发服务器失败"; exit $ret; fi | 9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动SRS转发服务器失败"; exit $ret; fi |
10 | 10 | ||
11 | echo "启动SRS转发服务器成功" | 11 | echo "启动SRS转发服务器成功" |
@@ -2,10 +2,10 @@ | @@ -2,10 +2,10 @@ | ||
2 | src_dir='src' | 2 | src_dir='src' |
3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi | 3 | if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; exit 1; fi |
4 | 4 | ||
5 | -cmd="nohup ./objs/srs -c conf/demo.conf >./objs/logs/demo.log 2>&1 &" | 5 | +cmd="nohup ./objs/srs -c conf/demo.conf >./objs/demo.log 2>&1 &" |
6 | echo "启动SRS服务器:$cmd" | 6 | echo "启动SRS服务器:$cmd" |
7 | pids=`ps aux|grep srs|grep "./objs"|grep "demo.conf"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done | 7 | pids=`ps aux|grep srs|grep "./objs"|grep "demo.conf"|awk '{print $2}'`; for pid in $pids; do echo "结束现有进程:$pid"; kill -s SIGKILL $pid; done |
8 | -nohup ./objs/srs -c conf/demo.conf >./objs/logs/demo.log 2>&1 & | 8 | +nohup ./objs/srs -c conf/demo.conf >./objs/demo.log 2>&1 & |
9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动SRS失败"; exit $ret; fi | 9 | ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动SRS失败"; exit $ret; fi |
10 | 10 | ||
11 | echo "启动SRS服务器成功" | 11 | echo "启动SRS服务器成功" |
-
请 注册 或 登录 后发表评论