Skip to content

Commit 494f2f7

Browse files
committed
更新Linux文档说明
1 parent 42d677e commit 494f2f7

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

Linux.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,18 @@ $ vim ~/.pip/pip.conf
497497

498498
```
499499
[global]
500-
trusted-host = pypi.douban.com
500+
index-url = http://mirrors.aliyun.com/pypi/simple/
501+
502+
[install]
503+
trusted-host=mirrors.aliyun.com
504+
```
505+
或者
506+
```
507+
[global]
501508
index-url = http://pypi.douban.com/simple
502-
#index-url = http://mirrors.aliyun.com/pypi/simple/
509+
510+
[install]
511+
trusted-host=pypi.douban.com
503512
```
504513
由于最新的 pip 安装需要使用的 https 加密,所以在此需要添加 trusted-host
505514

@@ -510,6 +519,17 @@ $ sudo apt-cache search ncurses- | grep ncurses
510519
$ sudo apt-get install libncurses5-dev
511520
```
512521

522+
523+
添加 curl 代理 (curl/wget)
524+
```
525+
$ vim ~/.curlrc
526+
```
527+
添加
528+
```
529+
proxy = http://127.0.0.1:8087
530+
```
531+
532+
513533
帅气终端(亮点是快速分屏)
514534
```
515535
$ apt-get install terminator

0 commit comments

Comments
 (0)