mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 12:21:55 +00:00
refine the run script for centos7
This commit is contained in:
parent
a9cceee943
commit
bea53dca97
2 changed files with 3 additions and 1 deletions
|
@ -10,3 +10,5 @@ echo "编译SRS"
|
|||
ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi
|
||||
|
||||
echo "编译SRS成功"
|
||||
echo "你可以启动SRS:"
|
||||
echo " bash scripts/run.sh"
|
||||
|
|
|
@ -17,7 +17,7 @@ echo "启动SRS转发服务器成功"
|
|||
./etc/init.d/srs-api restart; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动API服务器失败"; exit $ret; fi
|
||||
echo "启动API服务器成功"
|
||||
|
||||
ip=`ifconfig|grep "inet "|grep -v "127.0.0.1"|awk 'NR==1 {print $2}'|awk -F ':' '{print $2}'`
|
||||
ip=`ifconfig|grep "inet "|grep -v "127.0.0.1"|awk -F 'inet ' 'NR==1 {print $2}'|awk '{print $1}'|sed "s/addr://g"`
|
||||
port=8085
|
||||
cat<<END
|
||||
默认的12路流演示:
|
||||
|
|
Loading…
Reference in a new issue