Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Sep 26, 2023
1 parent c72a098 commit 9f89aab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions i18n/zh-cn/docusaurus-plugin-content-pages/faq-srs-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ docker run --rm -it -p 2022:2022 -p 1935:1935 \
```bash
docker run --rm -it -p 2023:2022 -p 1936:1935 \
-p 8081:8080 -p 8001:8000/udp -p 10081:10080/udp --name srs-stack1 \
-v $HOME/data2:/data ossrs/srs-stack:5
-v $HOME/data1:/data ossrs/srs-stack:5
```

然后打开 [http://localhost:2023](http://localhost:2023) 即可登录后台。
Expand All @@ -198,13 +198,13 @@ docker run --rm -it -p 2023:2022 -p 1936:1935 \

若需要推流到两个SRS Stack实例,则需要指定端口,比如推流到这两个SRS Stack:

* rtmp://ip:1935/live/livestream
* rtmp://ip:1936/live/livestream
* `rtmp://ip:1935/live/livestream`
* `rtmp://ip:1936/live/livestream`

其他的协议端口对应的也要改变,比如HLS:

* http://ip:8080/live/livestream.m3u8
* http://ip:8081/live/livestream.m3u8
* `http://ip:8080/live/livestream.m3u8`
* `http://ip:8081/live/livestream.m3u8`

当然也不是意味着你就可以启动上万个SRS Stack,你应该关注你的CPU和内存,以及机器的带宽是否充足。

Expand Down
10 changes: 5 additions & 5 deletions src/pages/faq-srs-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Then, open [http://localhost:2022](http://localhost:2022) to log in to the backe
```bash
docker run --rm -it -p 2023:2022 -p 1936:1935 \
-p 8081:8080 -p 8001:8000/udp -p 10081:10080/udp --name srs-stack1 \
-v $HOME/data:/data ossrs/srs-stack:5
-v $HOME/data1:/data ossrs/srs-stack:5
```

Then, open [http://localhost:2023](http://localhost:2023) to log in to the backend.
Expand All @@ -194,13 +194,13 @@ If you only need multi-platform streaming or virtual streaming without involving

If you need to push streams to two SRS Stack instances, you need to specify the ports, such as pushing streams to these two SRS Stacks:

* rtmp://ip:1935/live/livestream
* rtmp://ip:1936/live/livestream
* `rtmp://ip:1935/live/livestream`
* `rtmp://ip:1936/live/livestream`

Other protocol ports should also be changed accordingly, such as HLS:

* http://ip:8080/live/livestream.m3u8
* http://ip:8081/live/livestream.m3u8
* `http://ip:8080/live/livestream.m3u8`
* `http://ip:8081/live/livestream.m3u8`

Of course, this doesn't mean you can start thousands of SRS Stacks. You should pay attention to your CPU and memory, as well as whether your machine has enough bandwidth.

Expand Down

0 comments on commit 9f89aab

Please sign in to comment.