winlin

refine the run script for centos7

@@ -17,7 +17,7 @@ echo "启动SRS转发服务器成功" @@ -17,7 +17,7 @@ echo "启动SRS转发服务器成功"
17 ./etc/init.d/srs-api restart; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动API服务器失败"; exit $ret; fi 17 ./etc/init.d/srs-api restart; ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:启动API服务器失败"; exit $ret; fi
18 echo "启动API服务器成功" 18 echo "启动API服务器成功"
19 19
20 -ip=`ifconfig|grep "inet"|grep "addr"|grep "Mask"|grep -v "127.0.0.1"|awk 'NR==1 {print $2}'|awk -F ':' '{print $2}'` 20 +ip=`ifconfig|grep "inet "|grep -v "127.0.0.1"|awk 'NR==1 {print $2}'|awk -F ':' '{print $2}'`
21 port=8085 21 port=8085
22 cat<<END 22 cat<<END
23 默认的12路流演示: 23 默认的12路流演示: