# 一分钟运行 Coolpy7

Coolpy7消息服务器每个版本，会发布 Linux、ARM、Mac OS X平台程序包与 Docker 镜像。

&#x20;下载地址: <https://github.com/Coolpy7>

&#x20;程序包下载后，可直接解压启动运行，例如 Linux 平台:

```
# 下载服务器端
wget https://github.com/Coolpy7/Coolpy7/raw/master/go_build_Coolpy7_go_linux.zip
# 解压文件
unzip go_build_Coolpy7_go_linux.zip
# 提权
chmod -R 777 go_build_Coolpy7_go_linux
# 启动Coolpy7
./go_build_Coolpy7_go_linux

# 启动成功后会打印如下信息，即说明服务端已正常启动
# host于1883端口，请确保相关防火墙配置可用
# admin于8081端口
2021/08/17 17:36:20 cluster on udp 192.168.101.204:7946
2021/08/17 17:36:20 cluster sync on udp port 7947
2021/08/17 17:36:20 Coolpy7 tcp is listening on [::]:1883
2021/08/17 17:36:20 Coolpy7 ws is listening on :8083
2021/08/17 17:36:20 coolpy7 coap pubish on udp :1883
2021/08/17 17:36:20 Coolpy7 admin&api&pub on http :8081
2021/08/17 17:36:20 Coolpy7 v7.3.5.8 build golang v1.16.6
```

#### 进入web管理后台

&#x20;浏览器输入cp7所在ip的管理后台（ip:8081)&#x20;

![](/files/-MhITUm0xxkpFLPO5E3b)

默认用户名：admin    默认密码：coolpy7

进入工具->websocket

![](/files/-MfHXUTNCtJkVyE6JmrH)

点击Connect -> Subscribe

![](/files/-MfHXjgb35sCj9_Cc4oR)

在Payload输入要测试发送的内容后，点按Publish即可以在Receiver中看到消息回发。


---

# 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://coolpy7.gitbook.io/coolpy7book/kai-shi-shi-yong/yi-fen-zhong-xia-zai-qi-dong-coolpy7.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.
