refine script, to disable iptables and selinux. 0.9.225

pull/133/head
winlin 10 years ago
parent 5e8f8ad3b9
commit 6468b9e92b

@ -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}"

@ -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"

Loading…
Cancel
Save