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:
		
							parent
							
								
									b90b64954e
								
							
						
					
					
						commit
						aaba290c1d
					
				
					 3 changed files with 22 additions and 8 deletions
				
			
		
							
								
								
									
										18
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
					@ -19,13 +19,19 @@ cd simple-rtmp-server-*.*/trunk
 | 
				
			||||||
./configure --with-ssl --with-hls --with-ffmpeg --with-http
 | 
					./configure --with-ssl --with-hls --with-ffmpeg --with-http
 | 
				
			||||||
make
 | 
					make
 | 
				
			||||||
</pre>
 | 
					</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/>
 | 
					step 2: start srs <br/>
 | 
				
			||||||
<pre>
 | 
					<pre>
 | 
				
			||||||
./objs/simple_rtmp_server -c conf/srs.conf
 | 
					./objs/srs -c conf/srs.conf
 | 
				
			||||||
</pre>
 | 
					</pre>
 | 
				
			||||||
step 3(optinal): start srs listen at 19350 to forward to<br/>
 | 
					step 3(optinal): start srs listen at 19350 to forward to<br/>
 | 
				
			||||||
<pre>
 | 
					<pre>
 | 
				
			||||||
./objs/simple_rtmp_server -c conf/srs.19350.conf
 | 
					./objs/srs -c conf/srs.19350.conf
 | 
				
			||||||
</pre>
 | 
					</pre>
 | 
				
			||||||
step 4(optional): start nginx for HLS <br/>
 | 
					step 4(optional): start nginx for HLS <br/>
 | 
				
			||||||
<pre>
 | 
					<pre>
 | 
				
			||||||
| 
						 | 
					@ -82,6 +88,14 @@ rtmp url: rtmp://demo:19350/live/livestream_sd
 | 
				
			||||||
m3u8 url: http://demo:80/forward/live/livestream_sd.m3u8
 | 
					m3u8 url: http://demo:80/forward/live/livestream_sd.m3u8
 | 
				
			||||||
for android: http://demo:80/forward/live/livestream_sd.html
 | 
					for android: http://demo:80/forward/live/livestream_sd.html
 | 
				
			||||||
</pre>
 | 
					</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
 | 
					### Architecture
 | 
				
			||||||
System Architecture:
 | 
					System Architecture:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,7 +83,7 @@ vhost __defaultVhost__ {
 | 
				
			||||||
vhost dev {
 | 
					vhost dev {
 | 
				
			||||||
    enabled         on;
 | 
					    enabled         on;
 | 
				
			||||||
    gop_cache       on;
 | 
					    gop_cache       on;
 | 
				
			||||||
    forward         127.0.0.1:19350;
 | 
					    #forward         127.0.0.1:19350;
 | 
				
			||||||
    hls {
 | 
					    hls {
 | 
				
			||||||
        hls             off;
 | 
					        hls             off;
 | 
				
			||||||
        hls_path        ./objs/nginx/html;
 | 
					        hls_path        ./objs/nginx/html;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										10
									
								
								trunk/configure
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								trunk/configure
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -57,11 +57,11 @@ help:
 | 
				
			||||||
	@echo "  server     build the srs(simple rtmp server) over st(state-threads)"
 | 
						@echo "  server     build the srs(simple rtmp server) over st(state-threads)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clean: 
 | 
					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
 | 
					server: _prepare_dir
 | 
				
			||||||
	@echo "build the srs(simple rtmp server) over st(state-threads)"
 | 
						@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.
 | 
					# the ./configure will generate it.
 | 
				
			||||||
_prepare_dir:
 | 
					_prepare_dir:
 | 
				
			||||||
| 
						 | 
					@ -87,7 +87,7 @@ GCC = g++
 | 
				
			||||||
LINK = \$(GCC)
 | 
					LINK = \$(GCC)
 | 
				
			||||||
AR = ar
 | 
					AR = ar
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.PHONY: default simple_rtmp_server 
 | 
					.PHONY: default srs 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
default:
 | 
					default:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -142,7 +142,7 @@ if [ $SRS_SSL = YES ]; then
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    LINK_OPTIONS="-ldl"
 | 
					    LINK_OPTIONS="-ldl"
 | 
				
			||||||
fi
 | 
					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! '
 | 
					echo 'configure ok! '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -187,4 +187,4 @@ fi
 | 
				
			||||||
if [ $SRS_HTTP = YES ]; then
 | 
					if [ $SRS_HTTP = YES ]; then
 | 
				
			||||||
    echo -e "\" python ./research/api-server/server.py 8085  \" to start the api-server"
 | 
					    echo -e "\" python ./research/api-server/server.py 8085  \" to start the api-server"
 | 
				
			||||||
fi
 | 
					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"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue