# Mattermost快速入门

<br>

<figure><img src="https://ucarecdn.com/8cd90d9d-8902-4845-a15b-f4664e5fcfb3/-/format/auto/-/quality/lighter/-/max_icc_size/10/-/resize/1288x/" alt=""><figcaption></figcaption></figure>

### 准备[​](https://support.websoft9.com/docs/mattermost#%E5%87%86%E5%A4%87) <a href="#zhun-bei" id="zhun-bei"></a>

部署 创达睿通 提供的 Mattermost 之后，需完成如下的准备工作：

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

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

#### 详细步骤[​](https://support.websoft9.com/docs/mattermost#%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. 本地电脑的 Chrome 或 Firefox 浏览器访问网址：`http://域名` 或 `http://服务器公网IP`, 进入引导页面&#x20;

   <figure><img src="/files/Ebuv7OnhiXEnokJQEvL5" alt=""><figcaption></figcaption></figure>
2. 设置后台管理员账号和密码，开始创建账号&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/en/mattermost/mattermost-createdaccount-websoft9.png" alt=""><figcaption></figcaption></figure>
3. 开始创建团队 或 登录到系统控制台
4. 打开：【Settings】>【Display】设置你所需的语言&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/en/mattermost/mattermost-display-websoft9.png" alt=""><figcaption></figcaption></figure>
5. 退出并重新登录，所选语言生效

> 需要了解更多 Mattermost 的使用，请参考官方文档：Matterbase Administrator’s Guide

#### 出现问题？[​](https://support.websoft9.com/docs/mattermost#%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98) <a href="#chu-xian-wen-ti" id="chu-xian-wen-ti"></a>

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

### Mattermost 使用入门[​](https://support.websoft9.com/docs/mattermost#mattermost-%E4%BD%BF%E7%94%A8%E5%85%A5%E9%97%A8) <a href="#mattermost-shi-yong-ru-men" id="mattermost-shi-yong-ru-men"></a>

下面以 **Mattermost 构建协作系统** 作为一个任务，帮助用户快速入门：

### Mattermost 常用操作[​](https://support.websoft9.com/docs/mattermost#mattermost-%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C) <a href="#mattermost-chang-yong-cao-zuo" id="mattermost-chang-yong-cao-zuo"></a>

#### 增加团队用户数[​](https://support.websoft9.com/docs/mattermost#%E5%A2%9E%E5%8A%A0%E5%9B%A2%E9%98%9F%E7%94%A8%E6%88%B7%E6%95%B0) <a href="#zeng-jia-tuan-dui-yong-hu-shu" id="zeng-jia-tuan-dui-yong-hu-shu"></a>

系统控制台 【SITE CONFIGURATION】>【Users and Teams】> 【Max Users Per Team】值来设置团队人数：&#x20;

<figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/en/mattermost/mattermost-maxusers-websoft9.png" alt=""><figcaption></figcaption></figure>

#### 域名额外配置（修改 URL）[​](https://support.websoft9.com/docs/mattermost#dns) <a href="#dns" id="dns"></a>

**域名五步设置** 完成后，需设置 Mattermost 的 URL:

登录Mattermost控制台，打开：【ENVIRONMENT】>【Web Server】，修改 【Site URL】值<br>

<figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/en/mattermost/mattermost-urlset-websoft9.png" alt=""><figcaption></figcaption></figure>

#### 配置 SMTP[​](https://support.websoft9.com/docs/mattermost#smtp) <a href="#smtp" id="smtp"></a>

1. 在邮箱管理控制台获取 SMTP 相关参数
2. 登录 Mattermost控制台，打开【ENVIROMENT】>【SMTP】&#x20;

   <figure><img src="/files/gDnIZXyS0w54CRrBBUUD" alt=""><figcaption></figcaption></figure>
3. 填写 SMTP 参数
4. 点击【Test Connection】

#### 安装插件[​](https://support.websoft9.com/docs/mattermost#%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6) <a href="#an-zhuang-cha-jian" id="an-zhuang-cha-jian"></a>

例如，jitmi被用户大量使用。

#### 语言设置[​](https://support.websoft9.com/docs/mattermost#setlang) <a href="#setlang" id="setlang"></a>

支持多语言（包含中文），可以登录控制台，通过【SITE CONFIGURATION】>【Localization】设置语言

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

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

通过运行`docker ps`，可以查看到 Mattermost 运行时所有的 Container：

```
CONTAINER ID   IMAGE                                       COMMAND                  CREATED             STATUS                       PORTS                                                                NAMES
1c26e24d9c18   dpage/pgadmin4:latest                       "/entrypoint.sh"         About an hour ago   Up About an hour             443/tcp, 0.0.0.0:9090->80/tcp, :::9090->80/tcp                       pgadmin
1d96d7bd3dd8   mattermost/mattermost-team-edition:latest   "/entrypoint.sh matt…"   About an hour ago   Up About an hour (healthy)   8067/tcp, 8074-8075/tcp, 0.0.0.0:9001->8065/tcp, :::9001->8065/tcp   mattermost
4baf3c38539b   postgres:13-alpine                          "docker-entrypoint.s…"   About an hour ago   Up About an hour             5432/tcp                                                             mattermost-db
```

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

Mattermost 安装目录： */data/apps/mattermost*\
Mattermost 数据目录： */data/apps/mattermost/data/mattermost\_data*\
Mattermost 日志目录： */data/apps/mattermost/data/mattermost\_logs*\
Mattermost 插件目录： */data/apps/mattermost/data/mattermost\_plugins*\
Mattermost 配置文件： */data/apps/mattermost/data/mattermost\_config/config.json*

> config.json 包含数据库连接信息

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

无特殊端口

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

```
sudo docker exec -i mattermost /mattermost/bin/mattermost version
```

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

```
sudo docker start | stop | restart | stats mattermost
sudo docker start | stop | restart | stats mattermost-db
sudo docker start | stop | restart | stats pgadmin
```

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

Mattermost 提供了 `mattermost` 和 `mmctl` 两种命令，mattermost是服务器端命令，mmctl基于API的客户端命令

```
/opt/mattermost/bin/mattermost -h
/opt/mattermost/bin/mmctl -h
```

如果运行 /opt/mattermost/bin/mmctl version 查询出的版本稍微低一点

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

[Mattermost API Reference](https://api.mattermost.com/)


---

# 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/xie-zuo-yu-sheng-chan-li/mattermost-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.
