mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine script.
This commit is contained in:
parent
6468b9e92b
commit
effcd89f66
1 changed files with 6 additions and 4 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue