File tree Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Expand file tree Collapse file tree 4 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,13 @@ inspect($$('#viewerContainer')[0])
10
10
11
11
## relational algebra review
12
12
13
- | operator | SQL |
14
- | --- | --- |
15
- | select | WHERE predicate |
16
- | projection | SELECT |
13
+ relational algebra 学术上用于无重复的数据集合/records,但现代数据库允许表中有重复行,因此可以推广到
14
+
15
+ | operator | Greek letter | SQL | notes |
16
+ | --- | --- | --- | --- |
17
+ | select | sigma(σ) | WHERE predicate | and(∧) or(∨) not(¬) |
18
+ | projection | pi(Π) | SELECT |
19
+ | Cartesian-product | cross(x) |
17
20
18
21
## words
19
22
Original file line number Diff line number Diff line change
1
+ # [ curl -L follow redirect] ( 2021/12/curl_redirect.md )
2
+
3
+ curl 下载文件后 tar xzf 解压提示格式不对,发现下载的文件大小只有 4kb 再 cat 去看发现原来是一个重定向的 CDN 链接
4
+
5
+ curl 加上 -L 参加即可 follow redirect 如下就能看到 curl 下载的第一个文件是一个重定向的链接第二个才是真正的问
6
+
7
+ ```
8
+ Step 5/40 : RUN curl -O -L https://npm.taobao.org/mirrors/node/latest-v16.x/node-v16.0.0-linux-x64.tar.gz
9
+ ---> Running in a74ccd5469d8
10
+ % Total % Received % Xferd Average Speed Time Time Time Current
11
+ Dload Upload Total Spent Left Speed
12
+ 100 187 100 187 0 0 816 0 --:--:-- --:--:-- --:--:-- 816
13
+ 100 31.7M 100 31.7M 0 0 2796k 0 0:00:11 0:00:11 --:--:-- 3424k
14
+ ```
Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_6
11
11
12
12
这种问题就是 docker container 的 DNS 问题
13
13
14
- 在 /etc/docker/daemon.json 中加上
14
+ 在 /etc/docker/daemon.json 中加上(国内网络别用谷歌的 DNS)
15
15
16
16
```
17
17
"dns" : [
18
- "114.114.114.114 ",
19
- "8.8.8.8 "
18
+ "119.29.29.29 ",
19
+ "114.114.114.114 "
20
20
]
21
21
```
22
22
23
23
然后 sudo systemctl restart docker 就能用了
24
+
25
+ ** 如果本机发生过 OpenVPN 网络切换,需要 restart docker 才能让 container 网络访问正常**
Original file line number Diff line number Diff line change 1
1
- [ 归档 - 吴翱翔的博客] ( / )
2
2
- ** 2021-12**
3
+ - [ curl -L follow redirect] ( 2021/12/curl_redirect.md )
3
4
- [ docker - resolve host] ( 2021/12/docker_could_not_resolve_host.md )
4
5
- [ /proc/swaps] ( 2021/12/proc_swaps.md )
5
6
- ** 2021-11**
You can’t perform that action at this time.
0 commit comments