正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| 1 | #/bin/bash | 1 | #/bin/bash |
| 2 | +ip=`ifconfig 2>&1|grep "inet addr"|grep -v "127"|awk '{print $2}'|awk -F ':' '{print $2}'` | ||
| 2 | for ((;;)); do | 3 | for ((;;)); do |
| 3 | echo "heatbeat at `date`" | 4 | echo "heatbeat at `date`" |
| 4 | curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo "" | 5 | curl 'http://ossrs.net:8085/api/v1/servers' -H 'Content-Type: text/html' --data-binary "{\"ip\":\"${ip}\",\"device_id\":\"respberry-pi2\"}" && echo "" |
-
请 注册 或 登录 后发表评论