正在显示
2 个修改的文件
包含
14 行增加
和
1 行删除
| @@ -32,6 +32,19 @@ cat<<END | @@ -32,6 +32,19 @@ cat<<END | ||
| 32 | http://$ip:$port/players/srs_bwt.html?key=35c9b402c12a7246868752e2878f7e0e&vhost=bandcheck.srs.com | 32 | http://$ip:$port/players/srs_bwt.html?key=35c9b402c12a7246868752e2878f7e0e&vhost=bandcheck.srs.com |
| 33 | END | 33 | END |
| 34 | 34 | ||
| 35 | +if [[ `getenforce` != 'Disabled' ]]; then | ||
| 36 | + echo -e "${RED}请关闭selinux:${BLACK}"; | ||
| 37 | + echo -e "${RED} 打开配置文件:sudo vi /etc/sysconfig/selinux${BLACK}"; | ||
| 38 | + echo -e "${RED} 修改为:SELINUX=disabled${BLACK}"; | ||
| 39 | + echo -e "${RED} 重启系统:sudo reboot${BLACK}"; | ||
| 40 | +fi | ||
| 41 | + | ||
| 42 | +sudo /etc/init.d/iptables status >/dev/null 2>&1; | ||
| 43 | +if [[ $? -ne 3 ]]; then | ||
| 44 | + echo -e "${RED}请关闭防火墙:${BLACK}"; | ||
| 45 | + echo -e "${RED} sudo /etc/init.d/iptables stop${BLACK}"; | ||
| 46 | +fi | ||
| 47 | + | ||
| 35 | echo -e "${GREEN}请在hosts中添加一行:${BLACK}" | 48 | echo -e "${GREEN}请在hosts中添加一行:${BLACK}" |
| 36 | echo -e "${RED} $ip demo.srs.com${BLACK}" | 49 | echo -e "${RED} $ip demo.srs.com${BLACK}" |
| 37 | echo -e "${GREEN}演示地址:${BLACK}" | 50 | echo -e "${GREEN}演示地址:${BLACK}" |
| @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 31 | // current release version | 31 | // current release version |
| 32 | #define VERSION_MAJOR "0" | 32 | #define VERSION_MAJOR "0" |
| 33 | #define VERSION_MINOR "9" | 33 | #define VERSION_MINOR "9" |
| 34 | -#define VERSION_REVISION "224" | 34 | +#define VERSION_REVISION "225" |
| 35 | #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION | 35 | #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION |
| 36 | // server info. | 36 | // server info. |
| 37 | #define RTMP_SIG_SRS_KEY "SRS" | 37 | #define RTMP_SIG_SRS_KEY "SRS" |
-
请 注册 或 登录 后发表评论