Skip to content

Commit 1e014c8

Browse files
author
pptfz
committed
更新AI笔记
1 parent f31d2c2 commit 1e014c8

5 files changed

Lines changed: 171 additions & 4 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: AI应用可视化平台
3+
id: AI应用可视化平台
4+
slug: /AI应用可视化平台
5+
---
6+
7+
# 😂 😂 😂
8+
9+
![readme](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/readme.gif)
10+
11+
12+
13+
![iShot2020-10-28_15.06.18](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot2020-10-28_15.06.18.png)
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# dify用户登陆报错
2+
3+
## 说明
4+
5+
| 组件 | 版本 |
6+
| ----- | ------ |
7+
| dify | 1.11.4 |
8+
| pg | 15.15 |
9+
| redis | 6.2.21 |
10+
11+
12+
13+
## 登陆报错
14+
15+
![iShot_2026-01-28_19.25.45](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2026-01-28_19.25.45.png)
16+
17+
```shell
18+
Too many incorrect password attempts. Please try again later.
19+
```
20+
21+
22+
23+
## 解决方法
24+
25+
[这里有个issue](https://github.com/langgenius/dify/issues/17939)
26+
27+
28+
29+
进入redis容器并连接redis
30+
31+
```shell
32+
docker exec -it docker-redis-1 redis-cli
33+
```
34+
35+
36+
37+
查看登陆相关的key
38+
39+
```shell
40+
KEYS "*login*"
41+
```
42+
43+
44+
45+
然后把被锁的用户的key删除即可
46+
47+
```shell
48+
DEL login_error_rate_limit:xxx@xxx.com
49+
```
50+
51+
52+
53+
## 小插曲
54+
55+
从管理后台查看到某个用户是 `等待中` 状态,在数据库中查看是 `pending` 状态,需要先修改用户状态为 `active`
56+
57+
:::tip pg相关命令
58+
59+
查看库
60+
61+
```postgresql
62+
\l
63+
```
64+
65+
66+
67+
切换库
68+
69+
```postgresql
70+
\c dify
71+
```
72+
73+
74+
75+
查看表
76+
77+
```postgresql
78+
\dt
79+
```
80+
81+
82+
83+
查看表结构
84+
85+
```postgresql
86+
\d table_name;
87+
```
88+
89+
:::
90+
91+
92+
93+
查看用户状态,可以看到 `status` 处显示为 `pending`
94+
95+
```postgresql
96+
SELECT id, email, status, initialized_at
97+
FROM accounts
98+
WHERE email = 'xx@xxx.com';
99+
id | email | status | initialized_at
100+
--------------------------------------+------------------------+---------+----------------------------
101+
22280a3d-62eb-44ad-84b1-4978ac194f1a | gggggggggg@xxxxxxx.com | pending | 2026-01-28 07:53:55.803903
102+
(1 row)
103+
```
104+
105+
106+
107+
修改用户状态
108+
109+
```shell
110+
UPDATE accounts
111+
SET status = 'active'
112+
WHERE email = 'gggggggggg@xxxxxxx.com';
113+
```
114+
115+
116+
117+
再次查看
118+
119+
```postgresql
120+
SELECT id, email, status, initialized_at
121+
FROM accounts
122+
WHERE email = 'gggggggggg@xxxxxxx.com';
123+
id | email | status | initialized_at
124+
--------------------------------------+------------------------+---------+----------------------------
125+
22280a3d-62eb-44ad-84b1-4978ac194f1a | gggggggggg@xxxxxxx.com | pending | 2026-01-28 07:53:55.803903
126+
(1 row)
127+
```
128+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: LLM工程平台
3+
id: LLM工程平台
4+
slug: /LLM工程平台
5+
---
6+
7+
# 😂 😂 😂
8+
9+
![readme](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/readme.gif)
10+
11+
12+
13+
![iShot2020-10-28_15.06.18](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot2020-10-28_15.06.18.png)

docs/数据库/postgres/postgres常用命令.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66

77

88

9-
10-
11-
12-
139
```
1410
pg_dump -h localhost -U postgres -d dbname -t table_name > table.sql
1511
```
@@ -20,3 +16,13 @@ pg_dump -h localhost -U postgres -d dbname -t table_name > table.sql
2016
psql -h localhost -U postgres -d dbname < table.sql
2117
```
2218

19+
20+
21+
22+
23+
24+
25+
26+
27+
28+

docusaurus.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ const config = {
207207
{ label: 'aws', to: '/docs/aws' },
208208
]
209209
},
210+
{
211+
label: 'AI',
212+
items: [
213+
{ label: 'LLM工程平台', to: '/docs/LLM工程平台' },
214+
{ label: 'AI应用可视化平台', to: '/docs/AI应用可视化平台' },
215+
]
216+
},
210217

211218
// {
212219
// type: 'docSidebar',

0 commit comments

Comments
 (0)