Srsデプロイメント・ノット
インストール
[yum/apt-get] install wget perl ntp ntpdate vim
タイミング
ntpdate 0.cn.pool.ntp.org
ダウンロードsrs wget --no-check-certificate -c https://github.com/ossrs/srs/archive/v2.0-r5.tar.gz
tar xzvf v2.0-r5.tar.gz
cd srs-2.0-r5/trunk
./configure && make && make install
Srsメイン構成
プロファイルは/usr/local/srs/conf/srs.conf # main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
http_api {
enabled on;
listen 16685;
}
http_server {
enabled on;
listen 16680;
dir ./objs/nginx/html;
}
stats {
network 0;
disk sda sdb xvda xvdb;
}
vhost __defaultVhost__ {
security{
enabled on;
deny play all;
allow publish all;
}
forward 128.1.201.x:16635 128.1.202.x:16635;
}
Srsスレーブ構成 # main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
vhost __defaultVhost__ {
security{
enabled on;
allow play all;
deny publish all;
}
}
最大オープンファイル数構成
変更/etc/security/limits.conf * soft nofile 1048576
* hard nofile 1048576
ファイアウォールの構成
ntpdate 0.cn.pool.ntp.org
ダウンロードsrs wget --no-check-certificate -c https://github.com/ossrs/srs/archive/v2.0-r5.tar.gz
tar xzvf v2.0-r5.tar.gz
cd srs-2.0-r5/trunk
./configure && make && make install
Srsメイン構成
プロファイルは/usr/local/srs/conf/srs.conf # main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
http_api {
enabled on;
listen 16685;
}
http_server {
enabled on;
listen 16680;
dir ./objs/nginx/html;
}
stats {
network 0;
disk sda sdb xvda xvdb;
}
vhost __defaultVhost__ {
security{
enabled on;
deny play all;
allow publish all;
}
forward 128.1.201.x:16635 128.1.202.x:16635;
}
Srsスレーブ構成 # main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
vhost __defaultVhost__ {
security{
enabled on;
allow play all;
deny publish all;
}
}
最大オープンファイル数構成
変更/etc/security/limits.conf * soft nofile 1048576
* hard nofile 1048576
ファイアウォールの構成
wget --no-check-certificate -c https://github.com/ossrs/srs/archive/v2.0-r5.tar.gz
tar xzvf v2.0-r5.tar.gz
cd srs-2.0-r5/trunk
./configure && make && make install
プロファイルは/usr/local/srs/conf/srs.conf
# main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
http_api {
enabled on;
listen 16685;
}
http_server {
enabled on;
listen 16680;
dir ./objs/nginx/html;
}
stats {
network 0;
disk sda sdb xvda xvdb;
}
vhost __defaultVhost__ {
security{
enabled on;
deny play all;
allow publish all;
}
forward 128.1.201.x:16635 128.1.202.x:16635;
}
Srsスレーブ構成 # main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
vhost __defaultVhost__ {
security{
enabled on;
allow play all;
deny publish all;
}
}
最大オープンファイル数構成
変更/etc/security/limits.conf * soft nofile 1048576
* hard nofile 1048576
ファイアウォールの構成
# main config for srs.
# @see full.conf for detail config.
listen 16635;
max_connections 10000;
srs_log_tank file;
srs_log_file ./objs/srs.log;
vhost __defaultVhost__ {
security{
enabled on;
allow play all;
deny publish all;
}
}
変更/etc/security/limits.conf
* soft nofile 1048576
* hard nofile 1048576