1. node.js(nvm)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install --lts
node -v
npm -v
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 22
node -v
npm -v
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 24
node -v
npm -v
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc
nvm install 26
node -v
npm -v
2. rust
bash <(curl -fsSL https://sh.rustup.rs)
source ~/.cargo/env
rustc -V
cargo -V
mold 链接器
apt -y install mold clang
# 全局切换到 mold(写入 ~/.cargo/config.toml)
mkdir -p ~/.cargo
cat > ~/.cargo/config.toml <<'EOF'
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
EOF
# 或仅当前会话:export RUSTFLAGS="-C link-arg=-fuse-ld=mold"
cargo 工具安装
cargo install cargo-edit
3. docker
bash <(curl -fsSL "https://get.docker.com")
docker --version
4. speedtest
bash <(curl -fsSL https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh) && apt -y install speedtest