# 开始安装Discuz

镜像验证通过后，即可根据9Panel（浏览器访问：<http://公网ip/9panel>）的提示完成剩余的应用安装过程。

建议在进入Discuz的安装界面之前，建议完成如下两个简单的操作：

* 通过PhpMyAdmin将数据库默认的root密码修改成您自己的密码，并牢记密码
* 通过域名管理面板中完成域名解析（增加一个A记录指向服务器IP），然后通过直接访问域名测试是否解析成功。

**具体安装向导如下：**

1. 本地浏览器访问：<http://域名> 或 <http://公网IP> 进入安装向导（首选域名访问安装）
2. 首先点击“我同意”;&#x20;

   ![wp00](http://libs.websoft9.com/Websoft9/DocsPicture/zh/discuz/ds01.png)
3. 点击“下一步”。&#x20;

   ![wp00](http://libs.websoft9.com/Websoft9/DocsPicture/zh/discuz/ds02.png)
4. 继续点击“下一步”。&#x20;

   ![wp00](http://libs.websoft9.com/Websoft9/DocsPicture/zh/discuz/ds03.png)
5. 填写第您已经创建的数据库名称、用户、密码（默认账号密码参考“

   **《常用账号与密码说明》**

   ”章节），设置您的管理员账号和密码。注意：请记住自己的管理员用户和密码。&#x20;

   ![wp00](http://libs.websoft9.com/Websoft9/DocsPicture/zh/discuz/ds04.png)
6. 安装完成，可以访问论坛了。&#x20;

   ![wp00](http://libs.websoft9.com/Websoft9/DocsPicture/zh/discuz/ds05.png)
7. 进入论坛后，可以通过右上角登录对论坛进行管理。&#x20;

   ![wp00](http://libs.websoft9.com/Websoft9/DocsPicture/zh/discuz/ds06.png)

## [安装的时候显示Discuz! Database Error](/discuz-image-guide/discuz-jing-xiang-shou-ce-1/kai-shi-an-zhuang-discuz.md#301) <a href="#discuz-database-error" id="discuz-database-error"></a>

如果数据库名称、数据库账号与数据库密码填写与实际不符合，安装就会失败，显示“Discuz! Database Error”错误，具体解决办法：

1. 使用phpMyAdmin（登录账号请使用discuz所用到的数据库账号）登录，验证你填写的数据库账号是否与实际匹配
2. 请到服务器上删除./data/install.lock文件
3. 通过网址然<http://ip/discuz/install> 或 <http://域名/install> 重装（一定要加上/install）


---

# 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://websoft9.gitbook.io/discuz-image-guide/discuz-jing-xiang-shou-ce-1/kai-shi-an-zhuang-discuz.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.
