1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

refine script.

This commit is contained in:
winlin 2014-10-09 12:09:01 +08:00
parent 6468b9e92b
commit effcd89f66

View file

@ -39,10 +39,12 @@ if [[ `getenforce` != 'Disabled' ]]; then
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}";
if [[ -f /etc/init.d/iptables ]]; then
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
fi
echo -e "${GREEN}请在hosts中添加一行${BLACK}"