mirror of https://github.com/ossrs/srs.git
Merge branch '3.0release' into develop
commit
c848050bb6
@ -0,0 +1,15 @@
|
||||
# the config for srs origin-edge cluster
|
||||
# @see https://github.com/ossrs/srs/wiki/v1_CN_Edge
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 19351;
|
||||
max_connections 1000;
|
||||
pid objs/edge1.pid;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
vhost __defaultVhost__ {
|
||||
cluster {
|
||||
mode remote;
|
||||
origin 127.0.0.1:19350;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
# the config for srs origin-edge cluster
|
||||
# @see https://github.com/ossrs/srs/wiki/v1_CN_Edge
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 19352;
|
||||
max_connections 1000;
|
||||
pid objs/edge2.pid;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
vhost __defaultVhost__ {
|
||||
cluster {
|
||||
mode remote;
|
||||
origin 127.0.0.1:19350;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -d /usr/lib/systemd/system ]]; then
|
||||
systemctl disable srs
|
||||
systemctl stop srs
|
||||
rm -f /usr/lib/systemd/system/srs.service
|
||||
rm -f /etc/init.d/srs
|
||||
else
|
||||
/sbin/chkconfig srs off
|
||||
/sbin/chkconfig --del srs
|
||||
/etc/init.d/srs stop
|
||||
rm -f /etc/init.d/srs
|
||||
fi
|
||||
rm -rf /usr/local/srs
|
||||
echo "SRS uninstalled"
|
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=The SRS Media Stream Cluster
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/init.d/srs start
|
||||
ExecReload=/etc/init.d/srs reload
|
||||
ExecStop=/etc/init.d/srs stop
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue