> For the complete documentation index, see [llms.txt](https://rh442.yunwei361.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rh442.yunwei361.com/00-jie-shao/jiao-shi-huan-jing.md).

# 教室环境

### 教室网络环境

<figure><img src="/files/DbytW9reUYeYVr3j8iG1" alt=""><figcaption></figcaption></figure>

* 本课程中，你主要操作的计算机系统是 workstation
* 另外的2台分别是 servera 和 serverb
* 所有的主机都位于 lab.example.com 这个 dns 域中
* 所有系统都有一个标准的帐号：student，密码也是student
* 所有学生系统上的 root 密码都是 redhat

<table><thead><tr><th width="272">主机名</th><th width="148">IP</th><th>角色</th></tr></thead><tbody><tr><td>bastion.lab.example.com</td><td>172.25.250.254</td><td>将学生私有网络连接到 classroom 服务器的网关系统</td></tr><tr><td>workstation.lab.example.com</td><td>172.25.250.9</td><td>系统管理员使用的图形工作站</td></tr><tr><td>servera.lab.example.com</td><td>172.25.250.10</td><td>调优目标服务器</td></tr><tr><td>serverb.lab.example.com</td><td>172.25.250.11</td><td>调优目标服务器</td></tr><tr><td><p>content.example.com</p><p>materials.example.com</p><p>classroom.example.com</p></td><td></td><td>classroom 工具服务器</td></tr></tbody></table>

### 常用命令

```bash
# 查看classroom的状态, 它必须是RUNNING
[kiosk@foundation0 ~]$ rht-vmctl status classroom
classroom RUNNING

# 启动classroom虚拟机
[kiosk@foundation0 ~]$ rht-vmctl start classroom

# 查看所有其他虚机的状态
[kiosk@foundation0 ~]$ rht-vmctl status all

# 启动所有的虛拟机
[kiosk@foundation0 ~]$ rht-vmctl start all

# 查看“物理控制台”以登录并使用服务器
[kiosk@foundation0 ~]$ rht-vmctl view servera

# 重置servera
[kiosk@foundation0 ~]$ rht-vmctl reset servera

# 完全重置servera
[kiosk@foundation0 ~]$ rht-vmctl fullreset servera

```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://rh442.yunwei361.com/00-jie-shao/jiao-shi-huan-jing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
