# Scratch快速入门

<br>

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

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

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

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

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

#### 详细步骤[​](https://support.websoft9.com/docs/scratch#%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>*, 就进入了Scratch&#x20;

   <figure><img src="https://libs.websoft9.com/Websoft9/DocsPicture/zh/scratch/scratch-gui-websoft9.png" alt=""><figcaption></figcaption></figure>
2. Scratch首次加载数据超过 20 M，如果您的网络带宽不足的话，加载会很慢，耐心等待

> 需要了解更多Scratch的使用，请参考官方文档：[Scratch Documentation](https://en.scratch-wiki.info/)

#### 出现问题？[​](https://support.websoft9.com/docs/scratch#%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** 尝试快速解决问题：

**Scratch无法加载或访问很慢？**

**Scratch 背景和角色图标无法在线获取？**

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

下面以 **Scratch 构建少儿编程系统** 作为一个任务，帮助用户快速入门：

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

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

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

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

```
CONTAINER ID   IMAGE                        COMMAND                  CREATED          STATUS          PORTS                                   NAMES
537d4d38eef3   dev/scratch:latest   "nginx -g 'daemon of…"   58 seconds ago   Up 57 seconds   0.0.0.0:9001->80/tcp, :::9001->80/tcp   scratch
```

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

Scratch 安装目录： */data/apps/scratch*\
Scratch 静态页面目录： */data/apps/scratch/data/scratch*

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

无特殊端口

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

控制台查看

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

```
sudo docker start | stop | restart scratch
```

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

无

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

[Scratch API](https://en.scratch-wiki.info/wiki/Scratch_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/she-ji-yu-chuang-zuo/scratch-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.
