# SRS快速入门

&#x20;

<figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-main-websoft9.png" alt=""><figcaption></figcaption></figure>

部署 创达睿通 提供的 SRS 之后，请参考下面的步骤快速入门。

### 准备[​](https://support.websoft9.com/docs/srs#prepare) <a href="#prepare" id="prepare"></a>

1. 在云控制台获取您的 **服务器公网IP地址**
2. 在云控制台安全组中，确保 **Inbound（入）规则** 下的 **TCP:80** 端口已经开启
3. 在服务器中查看 SRS 的 **默认账号和密码**
4. 若想用域名访问 SRS，务必先完成 **域名五步设置** 过程

### SRS 初始化向导[​](https://support.websoft9.com/docs/srs#wizard) <a href="#wizard" id="wizard"></a>

#### 详细步骤[​](https://support.websoft9.com/docs/srs#%E8%AF%A6%E7%BB%86%E6%AD%A5%E9%AA%A4) <a href="#xiang-xi-bu-zhou" id="xiang-xi-bu-zhou"></a>

1. 使用本地电脑浏览器访问网址：*<http://域名>* 或 *<http://服务器公网IP>*, 进入后台管理页面

   ![](https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-init-websoft9.png)
2. 点击【SRS控制台】，进入控制台进行监控以及各种设置

   ![](https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-console-websoft9.png)

#### 碰到问题？[​](https://support.websoft9.com/docs/srs#%E7%A2%B0%E5%88%B0%E9%97%AE%E9%A2%98) <a href="#peng-dao-wen-ti" id="peng-dao-wen-ti"></a>

若碰到问题，请第一时刻联系 **技术支持**。也可以先参考下面列出的问题定位或 **FAQ** 尝试快速解决问题。

### SRS 使用入门[​](https://support.websoft9.com/docs/srs#quickstart) <a href="#quickstart" id="quickstart"></a>

下面以 **OBS 推送PC桌面流到 SRS** 作为一个任务，帮助用户快速入门：

1. 下载并安装OBS
2. 启动 OBS，点击【+】来添加源&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-add-websoft9.png" alt=""><figcaption></figcaption></figure>
3. 选择【显示器采集】，新建源名称后点击【确定】 &#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-add1-websoft9.png" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-add2-websoft9.png" alt=""><figcaption></figcaption></figure>
4. 选择【设置】，分别对【推流】和【输出】进行设置  &#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-set-websoft9.png" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-set1-websoft9.png" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-set2-websoft9.png" alt=""><figcaption></figcaption></figure>

> 输出编码如果使用硬件，对显卡要求较高，可能无法推流成功

5. 点击【开始推流】，连接成功即推流成功 &#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-tl1-websoft9.png" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-tl2-websoft9.png" alt=""><figcaption></figcaption></figure>
6. 回到后台，点击【SRS播放器】查看推流结果  &#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-view1-websoft9.png" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-view2-websoft9.png" alt=""><figcaption></figcaption></figure>

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/srs/srs-view3-websoft9.png" alt=""><figcaption></figcaption></figure>

### SRS 常用操作[​](https://support.websoft9.com/docs/srs#guide) <a href="#guide" id="guide"></a>

### 参数[​](https://support.websoft9.com/docs/srs#parameter) <a href="#parameter" id="parameter"></a>

SRS 应用中包含 Docker, Portainer 等组件，可通过 **通用参数表** 查看路径、服务、端口等参数。

通过运行 `docker ps`，查看 SRS 运行时所有的服务组件：

```
CONTAINER ID   IMAGE              COMMAND                  CREATED       STATUS       PORTS                                                                                                                                                                                             NAMES
49f6aed14ba8   ossrs/srs:latest   "./objs/srs -c conf/…"   2 hours ago   Up 2 hours   0.0.0.0:1935->1935/tcp, :::1935->1935/tcp, 0.0.0.0:1985->1985/tcp, :::1985->1985/tcp, 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 8000/udp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 10080/udp   srs
```

#### 路径[​](https://support.websoft9.com/docs/srs#path) <a href="#path" id="path"></a>

SRS 安装目录： */data/apps/srs*

#### 端口[​](https://support.websoft9.com/docs/srs#port) <a href="#port" id="port"></a>

除 80, 443 等常见端口需开启之外，以下端口可能会用到：

无特殊端口

#### 版本[​](https://support.websoft9.com/docs/srs#version) <a href="#version" id="version"></a>

控制台查看

#### 服务[​](https://support.websoft9.com/docs/srs#service) <a href="#service" id="service"></a>

```
sudo docker start | stop | restart | stats srs
```

#### 命令行[​](https://support.websoft9.com/docs/srs#cli) <a href="#cli" id="cli"></a>

暂无

#### API[​](https://support.websoft9.com/docs/srs#api) <a href="#api" id="api"></a>

SRS提供API接口，供外部程序管理服务器


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.imdcinsights.com/ying-yong-zhong-xin/yun-yuan-sheng-jia-gou/srs-kuai-su-ru-men.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
