Skip to content

v2_EN_Build

winlin edited this page Jan 21, 2020 · 36 revisions

HOME > EN > Build

Build SRS

You can directly use the release binaries, or build SRS step by step. See: Github: release or Mirror of China: release

OS

  • Centos6.x/Ubuntu12 is proved for Usage of README.
  • Recomment to use Centos6.x/Ubuntu12 for demo of SRS, because it's complex to compile FFMPEG.
  • Turn some features off when you need to compile SRS on other OS.

Iptables and Selinux

Sometimes the stream play failed, but without any error message, or server cann't connect to. Please check the iptables and selinux.

Turn off iptables:

# disable the firewall
sudo /etc/init.d/iptables stop
sudo /sbin/chkconfig iptables off

Disable the selinux, to run getenforce to ensure the result is Disabled:

  1. Edit the config of selinux: sudo vi /etc/sysconfig/selinux
  2. Change the SELINUX to disabled: SELINUX=disabled
  3. Rebot: sudo init 6

Build and Run SRS

It's very easy to build SRS:

./configure && make

Also easy to start SRS:

./objs/srs -c conf/srs.conf

Publish RTMP, please see: Usage: RTMP

More usages, please see: Usage

Winlin 2014.11

Welcome to SRS wiki!

SRS 5.0 wiki

Please select your language:

SRS 4.0 wiki

Please select your language:

SRS 3.0 wiki

Please select your language:

SRS 2.0 wiki

Please select your language:

SRS 1.0 wiki

Please select your language:

Clone this wiki locally