1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-14 20:31:56 +00:00

refine script, to disable iptables and selinux. 0.9.225

This commit is contained in:
winlin 2014-10-09 12:07:56 +08:00
parent 5e8f8ad3b9
commit 6468b9e92b
2 changed files with 14 additions and 1 deletions

View file

@ -32,6 +32,19 @@ cat<<END
http://$ip:$port/players/srs_bwt.html?key=35c9b402c12a7246868752e2878f7e0e&vhost=bandcheck.srs.com
END
if [[ `getenforce` != 'Disabled' ]]; then
echo -e "${RED}请关闭selinux${BLACK}";
echo -e "${RED} 打开配置文件sudo vi /etc/sysconfig/selinux${BLACK}";
echo -e "${RED} 修改为SELINUX=disabled${BLACK}";
echo -e "${RED} 重启系统sudo reboot${BLACK}";
fi
sudo /etc/init.d/iptables status >/dev/null 2>&1;
if [[ $? -ne 3 ]]; then
echo -e "${RED}请关闭防火墙:${BLACK}";
echo -e "${RED} sudo /etc/init.d/iptables stop${BLACK}";
fi
echo -e "${GREEN}请在hosts中添加一行${BLACK}"
echo -e "${RED} $ip demo.srs.com${BLACK}"
echo -e "${GREEN}演示地址:${BLACK}"

View file

@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR "0"
#define VERSION_MINOR "9"
#define VERSION_REVISION "224"
#define VERSION_REVISION "225"
#define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION
// server info.
#define RTMP_SIG_SRS_KEY "SRS"