Qwas Notes
Attachments
History
Blame
View Source
Documentation
About An Otter Wiki
Toggle dark mode
Login
Home
A - Z
Changelog
\345\274\200\345\217\221\347\216\257\345\242\203\351\205\215\347\275\256
Linux\350\277\234\347\250\213\345\274\200\345\217\221\347\216\257\345\242\203\351\205\215\347\275\256
6bd0dc
Commit
6bd0dc
2024-10-30 14:39:14
Qwas
: Save Linux远程开发环境配置
\345\274\200\345\217\221\347\216\257\345\242\203\351\205\215\347\275\256/Linux\350\277\234\347\250\213\345\274\200\345\217\221\347\216\257\345\242\203\351\205\215\347\275\256.md
..
@@ 24,20 24,38 @@
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
```
-
### node 代理
+
### nvm 代理
+
+
> 执行以下其中一项即可
```sh
-
export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release
+
# 临时生效
+
export NVM_NODEJS_ORG_MIRROR=http://mirrors.aliyun.com/nodejs-release
```
```sh
+
# 写入文件,长期生效
echo 'export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release' >> /root/.bashrc
```
+
```sh
+
# 阿里云内网使用
+
export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release
+
```
+
+
```sh
+
# 阿里云内网使用
+
echo 'export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release' >> /root/.bashrc
```
+
+
```sh
nvm install 14.21.3
```
+
```sh
+
nvm install lts
+
```
+
### npm 代理
```sh
@@ 47,6 65,24 @@
## docker 安装
```sh
+
export DOWNLOAD_URL="http://mirrors.aliyun.com/docker-ce/"
+
curl -fsSL https://get.docker.com/ | sudo -E sh
+
```
+
+
```sh
+
# 阿里云内网使用
export DOWNLOAD_URL="http://mirrors.cloud.aliyuncs.com/docker-ce/"
curl -fsSL https://get.docker.com/ | sudo -E sh
```
+
+
## 设置hosts
+
+
::: danger
+
谨慎使用
+
:::
+
+
```sh
+
echo "8.217.88.233 mirrors.ubuntu.com" >> /etc/hosts
+
echo "8.217.88.233 archive.ubuntu.com">> /etc/hosts
+
echo "8.217.88.233 security.ubuntu.com">> /etc/hosts
+
```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9