Skip to content

Commit 37e4716

Browse files
committed
Add study notes for 2025-08-14
1 parent 06fed6d commit 37e4716

1 file changed

Lines changed: 81 additions & 0 deletions

File tree

look-new.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,87 @@ timezone: UTC+8
1515
## Notes
1616

1717
<!-- Content_START -->
18+
# 2025-08-14
19+
20+
## 2.搭建中的问题解决
21+
22+
我个人是windos+wsl2(unbuntu)
23+
24+
## 1.首先得确保你的wsl2能够连接上vpn
25+
26+
我的操作如下:
27+
28+
### 1、确认 Clash 配置
29+
30+
首先,确保你已经在 Windows 上成功安装并配置了 Clash。在 Windows 上运行 Clash,将局域网打开, 默认代理号为7890
31+
32+
![](https://pica.zhimg.com/v2-51e542c9131a32fa02b959d2f5599e5c_1440w.jpg)
33+
34+
在这里插入图片描述
35+
36+
### 2、查看ip地址
37+
38+
在windows下的cmd中查看,输入`ipconfig`
39+
40+
![](https://picx.zhimg.com/v2-b6f78de8e5bcea11d8bd576f746987a7_1440w.jpg)
41+
42+
在这里插入图片描述
43+
44+
### 3、设置 WSL 中的[环境变量](https://zhida.zhihu.com/search?content_id=252432267&content_type=Article&match_order=1&q=%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F&zhida_source=entity)
45+
46+
为了在 WSL 中使用 Windows 上的 Clash 代理,你需要设置代理环境变量。你可以通过修改 ~/.bashrc 或 ~/.zshrc(取决于你使用的 shell)文件来设置这些变量。
47+
48+
1.打开 `~/.bashrc``~/.zshrc` 文件
49+
50+
2.添加以下 alias 命令:
51+
52+
```jsx
53+
# 启用代理
54+
alias proxy='export http_proxy="http://192.168.0.103:7890"; export https_proxy="http://192.168.0.103:7890"; export ftp_proxy="http://192.168.0.103:7890"; export no_proxy="localhost,192.168.0.103,*.local"; echo "Proxy enabled"'
55+
# 禁用代理
56+
alias unproxy='unset http_proxy; unset https_proxy; unset ftp_proxy; unset no_proxy; echo "Proxy disabled"'
57+
```
58+
59+
> 192.168.0.103 替换为你本机的ip地址
60+
>
61+
62+
3.保存并退出文件,然后执行:
63+
64+
`source ~/.bashrc # 或者 ~/.zshrc`
65+
66+
4.启用代理:
67+
68+
`proxy`
69+
70+
5.测试代理是否生效
71+
72+
`curl -I https://www.google.com`
73+
74+
如果一切正常,你应该能通过代理连接到外部网站。
75+
76+
## **完整部署步骤**
77+
78+
### 1. 环境准备
79+
80+
先确保你已经安装好:
81+
82+
- **Docker**
83+
- Mac: Docker Desktop ≥ 4.41.1
84+
- Ubuntu: Docker Engine ≥ 27.2.0
85+
- **Kurtosis CLI** ≥ 1.10.3
86+
87+
安装教程:https://docs.kurtosis.com/install/
88+
89+
- Git(拉取包时需要)
90+
91+
测试:
92+
93+
```bash
94+
docker --version
95+
kurtosis version
96+
97+
```
98+
1899
# 2025-08-13
19100

20101
## 1.什么是以太坊测试网,为什么需要以太坊测试网

0 commit comments

Comments
 (0)