Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
donknap committed Nov 7, 2024
1 parent edd4988 commit a32afe1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* [InDocker](zh-cn/install/dind.md)
* [源码编译](zh-cn/install/source.md)
* [绑定域名子目录](zh-cn/install/nginx-location.md)
* [控制命令](zh-cn/install/ctrl.md)
* **功能手册**
* **创建容器**
* [独立容器](zh-cn/manual/container/create.md)
Expand Down
25 changes: 25 additions & 0 deletions docs/zh-cn/install/ctrl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 面板控制命令

> DPanel Version >= 1.2.2
控制命令需要进入 DPanel 面板容器运行。

```
docker exec -it dpanel /bin/sh
```

### 重置管理员用户

#### 重置密码

```
/app/server/dpanel -f /app/server/config.yaml user:reset --password 123456
```

#### 重置用户名

> 重置用户名时,必须指定命令
```
/app/server/dpanel -f /app/server/config.yaml user:reset --password 123456 --username root
```
2 changes: 1 addition & 1 deletion docs/zh-cn/install/nginx-location.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 绑定子目录

> Version >= 1.1.4
> DPanel Version >= 1.1.4
> http://127.0.0.1:8807 根据实际的主机ip及暴露端口而决定,这里只是为了举例说明问题
Expand Down

0 comments on commit a32afe1

Please sign in to comment.