Linux 远程开发环境配置

安装 oh-my-bash

bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"

安装 git unzip

apt update
apt install -y git unzip

nodejs 安装

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

node 代理

export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release
echo 'export NVM_NODEJS_ORG_MIRROR=http://mirrors.cloud.aliyuncs.com/nodejs-release' >> /root/.bashrc
nvm install 14.21.3

npm 代理

npm config set registry https://registry.npmmirror.com

docker 安装

export DOWNLOAD_URL="http://mirrors.cloud.aliyuncs.com/docker-ce/"
curl -fsSL https://get.docker.com/ | sudo -E sh
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