1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add reload readme.

This commit is contained in:
winlin 2013-12-15 12:44:09 +08:00
parent b90b64954e
commit aaba290c1d
3 changed files with 22 additions and 8 deletions

View file

@ -19,13 +19,19 @@ cd simple-rtmp-server-*.*/trunk
./configure --with-ssl --with-hls --with-ffmpeg --with-http
make
</pre>
or get the latest code:<br/>
<pre>
git clone https://github.com/winlinvip/simple-rtmp-server
cd simple-rtmp-server/trunk
./configure --with-ssl --with-hls --with-ffmpeg --with-http
</pre>
step 2: start srs <br/>
<pre>
./objs/simple_rtmp_server -c conf/srs.conf
./objs/srs -c conf/srs.conf
</pre>
step 3(optinal): start srs listen at 19350 to forward to<br/>
<pre>
./objs/simple_rtmp_server -c conf/srs.19350.conf
./objs/srs -c conf/srs.19350.conf
</pre>
step 4(optional): start nginx for HLS <br/>
<pre>
@ -82,6 +88,14 @@ rtmp url: rtmp://demo:19350/live/livestream_sd
m3u8 url: http://demo:80/forward/live/livestream_sd.m3u8
for android: http://demo:80/forward/live/livestream_sd.html
</pre>
step 11: modify the config and reload it (all features support reload)<br/>
<pre>
killall -1 srs
</pre>
or use specified signal name to reload:<br/>
<pre>
killall -s SIGHUP srs
</pre>
### Architecture
System Architecture:

View file

@ -83,7 +83,7 @@ vhost __defaultVhost__ {
vhost dev {
enabled on;
gop_cache on;
forward 127.0.0.1:19350;
#forward 127.0.0.1:19350;
hls {
hls off;
hls_path ./objs/nginx/html;

10
trunk/configure vendored
View file

@ -57,11 +57,11 @@ help:
@echo " server build the srs(simple rtmp server) over st(state-threads)"
clean:
(rm -f Makefile; cd ${SRS_OBJS}; rm -rf Makefile *.hpp src st_*_load)
(rm -f Makefile; cd ${SRS_OBJS}; rm -rf srs Makefile *.hpp src st_*_load)
server: _prepare_dir
@echo "build the srs(simple rtmp server) over st(state-threads)"
\$(MAKE) -f ${SRS_OBJS}/${SRS_MAKEFILE} simple_rtmp_server
\$(MAKE) -f ${SRS_OBJS}/${SRS_MAKEFILE} srs
# the ./configure will generate it.
_prepare_dir:
@ -87,7 +87,7 @@ GCC = g++
LINK = \$(GCC)
AR = ar
.PHONY: default simple_rtmp_server
.PHONY: default srs
default:
@ -142,7 +142,7 @@ if [ $SRS_SSL = YES ]; then
else
LINK_OPTIONS="-ldl"
fi
BUILD_KEY="simple_rtmp_server" APP_MAIN="srs_main_server" APP_NAME="simple_rtmp_server" SO_PATH="" . auto/apps.sh
BUILD_KEY="srs" APP_MAIN="srs_main_server" APP_NAME="srs" SO_PATH="" . auto/apps.sh
echo 'configure ok! '
@ -187,4 +187,4 @@ fi
if [ $SRS_HTTP = YES ]; then
echo -e "\" python ./research/api-server/server.py 8085 \" to start the api-server"
fi
echo "\" ./objs/simple_rtmp_server -c conf/srs.conf \" to start the srs live server"
echo "\" ./objs/srs -c conf/srs.conf \" to start the srs live server"