Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added _figures/user-guide/nodes_add.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _figures/user-guide/nodes_ops_in.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _figures/user-guide/nodes_ops_out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 6 additions & 21 deletions _sidebar.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
* 产品简介
* [产品介绍](introduction/product-introduction.md)
* [基本概念](introduction/basic-concepts.md)
* [七牛云用户服务协议](introduction/conditions-of-use.md)
* [容器服务等级协议](introduction/kirk-sla.md)
* 快速开始
* [开始创建一个服务](quick-start/create-app.md)
* [基于镜像创建一个应用](quick-start/create-app.md)
* [服务在集群内/集群外的访问](quick-start/cluster-app.md)
* 用户指南
* [账号注册](user-guide/registry.md)
* [应用](user-guide/app.md)
* [服务](user-guide/service.md)
* [容器](user-guide/container.md)
* [存储](user-guide/storage.md)
* [HTTP/HTTPS七层负载均衡](user-guide/loadbalance_7.md)
* [HTTP七层负载均衡](user-guide/loadbalance_7.md)
* [TCP四层负载均衡](user-guide/loadbalance_4.md)
* [域名管理](user-guide/domain.md)
* [镜像中心](user-guide/image.md)
* [配置中心](user-guide/configmap.md)
* [告警中心](user-guide/warning.md)
* [应用市场](user-guide/apps.md)
* [主机管理](user-guide/nodes.md)
* [账户中心](user-guide/account.md)
* [监控 & 日志](user-guide/log-and-monitor.md)
* [空间管理](user-guide/namespace.md)
* [原生模式](user-guide/origin-mode.md)
* API 文档
* [账户管理](api-doc/account.md)
* [服务接口](api-doc/service.md)
* [服务接口V2](api-doc/service_v2.md)
* [存储接口](api-doc/volume.md)
* [配置接口](api-doc/configmap.md)
* [HTTP/HTTPS 负载均衡接口](api-doc/alb.md)
* [TCP负载均衡](api-doc/tlb.md)
* [云盘接口](api-doc/volume.md)
* 最佳实践
* [开始一个Wordpress应用](best-practise/create-wordpress-app.md)
* Q & A
* [常见问题](q-and-a/about-service.md)
37 changes: 18 additions & 19 deletions best-practise/create-wordpress-app.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# 开始一个Wordpress应用
Wordpress应用包含两类服务,即MySQL数据库服务和Wordpress web服务。

[1. 选择空间](#jump1)
[2. 创建服务](#jump2)

- [2.1 创建MySQL服务](#jump21)
- [2.2 创建Wordpress web服务](#jump22)

[3. 完成创建和访问应用](#jump3)

## <span id="jump1">1. 选择空间</span>

## 1. 选择空间
选择当前服务需要被创建在哪个空间下。空间彼此之间资源隔离,如果服务有内网互访的需求,需要创建在一个空间下。操作如下:

**下拉控制台顶部的「空间」进行空间切换**

![下拉选择空间](_figures/quick-start/create-app-namespace.png)
***

## <span id="jump2">2. 创建服务</span>
## 2. 添加应用
**操作如下:**

1)点击控制台左边栏的「应用」,切换至应用页面

**1)点击控制台左边栏的「服务」,切换至服务页面**
2)点击「添加应用」

**2)点击「创建服务」**
3)选择应用的创建方式,选择「基于镜像创建」

![](_figures/quick-start/create-app-5.png)
4)填写「应用名」为`wordpress`

### <span id="jump21">2.1 创建MySQL服务</span>
!> **命名规范:**2-30位的小写字母、数字,开头为字母

5)点击「添加服务」
***

## 3. 添加服务

### 3.1 创建MySQL服务
**操作如下:**

1)填写「服务名」为 **"db"**
Expand Down Expand Up @@ -55,8 +55,7 @@ Wordpress应用包含两类服务,即MySQL数据库服务和Wordpress web服

9)点击「确认」,完成mysql服务创建

### <span id="jump22">2.2 创建Wordpress web服务</span>

### 3.2 创建Wordpress web服务
再次点击「创建服务」,添加第二个服务 Wordpress web服务。

**操作如下:**
Expand All @@ -79,13 +78,13 @@ Wordpress应用包含两类服务,即MySQL数据库服务和Wordpress web服
3.点击 「创建」 <br>

7)点击「添加环境变量」。
填写「变量名」为 **"WORDPRESS_DB_HOST"**,选择「加载方式」为 **"手动填写"**,填写「变量值」为 **"db:3306"**;
填写「变量名」为 **"WORDPRESS_DB_HOST"**,选择「加载方式」为 **"手动填写"**,填写「变量值」为 **"wordpress-db:3306"**;
填写「变量名」为 **"WORDPRESS_DB_PASSWORD"**,选择「加载方式」为 **"手动填写"**,填写「变量值」为 **"root123"**;

8)填写「运行目录」为 **"/var/www/html"**

9)点击「确认」,完成wordpress web服务创建
***

## <span id="jump3">3. 完成创建和访问应用</span>
## 4. 完成创建和访问应用
至此,一个wordpress应用就创建好了,可以通过wordpress web服务对外暴露的访问地址访问wordpress应用。
23 changes: 0 additions & 23 deletions introduction/basic-concepts.md

This file was deleted.

22 changes: 0 additions & 22 deletions introduction/changelog.md

This file was deleted.

Loading