Blame

2633c3 Qwas 2024-05-03 11:40:57
1
# 远程开发环境配置
4ac20c Qwas 2024-04-28 17:09:43
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
00544e Qwas 2024-04-29 12:08:54
修改 VScode远程开发环境配置
12
apt install -y git unzip
4ac20c Qwas 2024-04-28 17:09:43
VScode远程开发环境配置
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
00544e Qwas 2024-04-29 12:08:54
修改 VScode远程开发环境配置
27
```sh
28
echo 'export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release' >> /root/.bashrc
29
```
30
31
```
32
nvm install 14.21.3
33
```
34
4ac20c Qwas 2024-04-28 17:09:43
VScode远程开发环境配置
35
### npm 代理
36
37
```sh
38
npm config set registry https://registry.npmmirror.com
39
```
40
41
## docker 安装
42
43
```sh
44
export DOWNLOAD_URL="http://mirrors.cloud.aliyuncs.com/docker-ce/"
45
curl -fsSL https://get.docker.com/ | sudo -E sh
46
```