Blame

4ac20c Qwas 2024-04-28 17:09:43
VScode远程开发环境配置
1
# VScode 远程开发环境配置
2
3
::: info
4
为了利用阿里内网加速,下面用到了内网域名,公网无法使用
5
如在公网使用,请将 http://mirrors.cloud.aliyuncs.com 替换成 https://mirrors.aliyun.com
6
:::
7
8
## 安装 git unzip
9
10
```sh
11
apt update
12
apt install git unzip
13
```
14
15
## nodejs 安装
16
17
```sh
18
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
19
```
20
21
### node 代理
22
23
```sh
24
export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release
25
```
26
27
### npm 代理
28
29
```sh
30
npm config set registry https://registry.npmmirror.com
31
```
32
33
## docker 安装
34
35
```sh
36
export DOWNLOAD_URL="http://mirrors.cloud.aliyuncs.com/docker-ce/"
37
curl -fsSL https://get.docker.com/ | sudo -E sh
38
```